Exception: Hem::InvalidCommandOrOpt
- Defined in:
- lib/hem/errors.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(command) ⇒ InvalidCommandOrOpt
constructor
A new instance of InvalidCommandOrOpt.
Constructor Details
#initialize(command) ⇒ InvalidCommandOrOpt
Returns a new instance of InvalidCommandOrOpt.
34 35 36 37 |
# File 'lib/hem/errors.rb', line 34 def initialize command @command = command super("Invalid command or option specified: '#{command}'") end |
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
33 34 35 |
# File 'lib/hem/errors.rb', line 33 def command @command end |