Exception: AngryShell::ShellError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, result) ⇒ ShellError

Returns a new instance of ShellError.



14
15
16
17
# File 'lib/angry_shell.rb', line 14

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

Instance Attribute Details

#resultObject

Returns the value of attribute result.



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

def result
  @result
end