Exception: Transat::UnknownOptions
- Inherits:
-
StandardError
- Object
- StandardError
- Transat::UnknownOptions
- Defined in:
- lib/transat/parser.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
Instance Method Summary collapse
-
#initialize(command, unrecognized_options) ⇒ UnknownOptions
constructor
A new instance of UnknownOptions.
- #message ⇒ Object
Constructor Details
#initialize(command, unrecognized_options) ⇒ UnknownOptions
Returns a new instance of UnknownOptions.
44 45 46 |
# File 'lib/transat/parser.rb', line 44 def initialize(command, ) @command, @unrecognized_options = command, end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
42 43 44 |
# File 'lib/transat/parser.rb', line 42 def command @command end |
Instance Method Details
#message ⇒ Object
48 49 50 |
# File 'lib/transat/parser.rb', line 48 def "Command #{@command} does not accept options #{@unrecognized_options.join(", ")}" end |