Exception: Hem::InvalidCommandOrOpt

Inherits:
Error
  • Object
show all
Defined in:
lib/hem/errors.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#exit_code

Instance Method Summary collapse

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

#commandObject

Returns the value of attribute command.



33
34
35
# File 'lib/hem/errors.rb', line 33

def command
  @command
end