Exception: Mothership::ExtraArguments
- Defined in:
- lib/mothership/errors.rb
Instance Method Summary collapse
-
#initialize(cmd, extra) ⇒ ExtraArguments
constructor
A new instance of ExtraArguments.
- #to_s ⇒ Object
Constructor Details
#initialize(cmd, extra) ⇒ ExtraArguments
Returns a new instance of ExtraArguments.
17 18 19 20 |
# File 'lib/mothership/errors.rb', line 17 def initialize(cmd, extra) @command = cmd @extra = extra end |
Instance Method Details
#to_s ⇒ Object
22 23 24 |
# File 'lib/mothership/errors.rb', line 22 def to_s "#{@command.display_name}: too many arguments; extra: #{@extra.join(" ")}" end |