Exception: Mothership::MissingArgument

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

Instance Method Summary collapse

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_sObject



11
12
13
# File 'lib/mothership/errors.rb', line 11

def to_s
  "#{@command.display_name}: missing input '#{@argument}'"
end