Exception: AngryShell::ShellError
- Inherits:
-
StandardError
- Object
- StandardError
- AngryShell::ShellError
- Defined in:
- lib/angry_shell.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(msg, result) ⇒ ShellError
constructor
A new instance of ShellError.
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
#result ⇒ Object
Returns the value of attribute result.
12 13 14 |
# File 'lib/angry_shell.rb', line 12 def result @result end |