Exception: Hobo::MissingArgumentsError
- 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, args, cli = nil) ⇒ MissingArgumentsError
constructor
A new instance of MissingArgumentsError.
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
#cli ⇒ Object
Returns the value of attribute cli.
29 30 31 |
# File 'lib/hobo/errors.rb', line 29 def cli @cli end |
#command ⇒ Object
Returns the value of attribute command.
29 30 31 |
# File 'lib/hobo/errors.rb', line 29 def command @command end |