Exception: Optionable::Unknown
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Optionable::Unknown
- Defined in:
- lib/optionable/unknown.rb
Overview
This exception is raised whenever unknown options are found during validation.
Instance Attribute Summary collapse
-
#key ⇒ Symbol
The name of the option.
- #names ⇒ Object
Instance Method Summary collapse
-
#initialize(key, names) ⇒ Unknown
constructor
Initialize the unknown option exception.
Constructor Details
#initialize(key, names) ⇒ Unknown
Initialize the unknown option exception.
25 26 27 28 29 |
# File 'lib/optionable/unknown.rb', line 25 def initialize(key, names) @key = key @names = names super() end |
Instance Attribute Details
#key ⇒ Symbol
Returns The name of the option.
14 15 16 |
# File 'lib/optionable/unknown.rb', line 14 def key @key end |
#names ⇒ Object
14 |
# File 'lib/optionable/unknown.rb', line 14 attr_reader :key, :names |