Exception: Hem::MissingArgumentsError

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, args) ⇒ MissingArgumentsError

Returns a new instance of MissingArgumentsError.



42
43
44
45
46
# File 'lib/hem/errors.rb', line 42

def initialize command, args
  @command = command
  @args = args
  super("Not enough arguments for #{command}")
end

Instance Attribute Details

#commandObject

Returns the value of attribute command.



41
42
43
# File 'lib/hem/errors.rb', line 41

def command
  @command
end