Exception: Mothership::ExtraArguments

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

Instance Method Summary collapse

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_sObject



22
23
24
# File 'lib/mothership/errors.rb', line 22

def to_s
  "#{@command.display_name}: too many arguments; extra: #{@extra.join(" ")}"
end