Exception: Caty::OptionArgumentError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Caty::OptionArgumentError
- Defined in:
- lib/caty/errors.rb
Instance Attribute Summary collapse
-
#expected ⇒ Object
Returns the value of attribute expected.
-
#option ⇒ Object
Returns the value of attribute option.
Instance Method Summary collapse
Instance Attribute Details
#expected ⇒ Object
Returns the value of attribute expected.
10 11 12 |
# File 'lib/caty/errors.rb', line 10 def expected @expected end |
#option ⇒ Object
Returns the value of attribute option.
10 11 12 |
# File 'lib/caty/errors.rb', line 10 def option @option end |
Instance Method Details
#message ⇒ Object
12 13 14 |
# File 'lib/caty/errors.rb', line 12 def "Bad argument to option `#{self.option}'. Expected #{self.expected}." end |