Exception: Mothership::MissingArgument
- Defined in:
- lib/mothership/errors.rb
Instance Method Summary collapse
-
#initialize(cmd, arg) ⇒ MissingArgument
constructor
A new instance of MissingArgument.
- #to_s ⇒ Object
Constructor Details
#initialize(cmd, arg) ⇒ MissingArgument
Returns a new instance of MissingArgument.
6 7 8 9 |
# File 'lib/mothership/errors.rb', line 6 def initialize(cmd, arg) @command = cmd @argument = arg end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/mothership/errors.rb', line 11 def to_s "#{@command.display_name}: missing input '#{@argument}'" end |