Exception: Caty::OptionArgumentError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/caty/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#expectedObject

Returns the value of attribute expected.



10
11
12
# File 'lib/caty/errors.rb', line 10

def expected
  @expected
end

#optionObject

Returns the value of attribute option.



10
11
12
# File 'lib/caty/errors.rb', line 10

def option
  @option
end

Instance Method Details

#messageObject



12
13
14
# File 'lib/caty/errors.rb', line 12

def message
    "Bad argument to option `#{self.option}'. Expected #{self.expected}."
end