Exception: Hobo::MissingArgumentsError

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

Instance Attribute Summary collapse

Attributes inherited from Error

#exit_code

Instance Method Summary collapse

Constructor Details

#initialize(command, args, cli = nil) ⇒ MissingArgumentsError

Returns a new instance of MissingArgumentsError.



30
31
32
33
34
35
# File 'lib/hobo/errors.rb', line 30

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

Instance Attribute Details

#cliObject

Returns the value of attribute cli.



29
30
31
# File 'lib/hobo/errors.rb', line 29

def cli
  @cli
end

#commandObject

Returns the value of attribute command.



29
30
31
# File 'lib/hobo/errors.rb', line 29

def command
  @command
end