class MSpecOption
Attributes
arg[R]
block[R]
description[R]
long[R]
short[R]
Public Class Methods
new(short, long, arg, description, block)
click to toggle source
# File lib/mspec/utils/options.rb, line 6 def initialize(short, long, arg, description, block) @short = short @long = long @arg = arg @description = description @block = block end
Public Instance Methods
arg?()
click to toggle source
# File lib/mspec/utils/options.rb, line 14 def arg? @arg != nil end
match?(opt)
click to toggle source
# File lib/mspec/utils/options.rb, line 18 def match?(opt) opt == @short or opt == @long end