Exception: Clamp::RuntimeError

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) ⇒ RuntimeError

Returns a new instance of RuntimeError.



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

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

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



13
14
15
# File 'lib/clamp/errors.rb', line 13

def command
  @command
end