Exception: Scallop::Errors::CommandFailed

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, result) ⇒ CommandFailed

Returns a new instance of CommandFailed.



11
12
13
14
# File 'lib/scallop.rb', line 11

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

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



9
10
11
# File 'lib/scallop.rb', line 9

def result
  @result
end