Exception: Hobo::InvalidCommandOrOpt
- Defined in:
- lib/hobo/errors.rb
Instance Attribute Summary collapse
-
#cli ⇒ Object
Returns the value of attribute cli.
-
#command ⇒ Object
Returns the value of attribute command.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(command, cli = nil) ⇒ InvalidCommandOrOpt
constructor
A new instance of InvalidCommandOrOpt.
Constructor Details
#initialize(command, cli = nil) ⇒ InvalidCommandOrOpt
Returns a new instance of InvalidCommandOrOpt.
21 22 23 24 25 |
# File 'lib/hobo/errors.rb', line 21 def initialize command, cli = nil @command = command @cli = cli super("Invalid command or option specified: '#{command}'") end |
Instance Attribute Details
#cli ⇒ Object
Returns the value of attribute cli.
20 21 22 |
# File 'lib/hobo/errors.rb', line 20 def cli @cli end |
#command ⇒ Object
Returns the value of attribute command.
20 21 22 |
# File 'lib/hobo/errors.rb', line 20 def command @command end |