Exception: Clamp::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/clamp/errors.rb

Direct Known Subclasses

HelpWanted, UsageError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, command) ⇒ Error

Returns a new instance of Error.



5
6
7
8
# File 'lib/clamp/errors.rb', line 5

def initialize(message, command)
  super(message)
  @command = command
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



10
11
12
# File 'lib/clamp/errors.rb', line 10

def command
  @command
end