Exception: EasyCommand::ExitError
- Inherits:
-
CommandError
- Object
- RuntimeError
- CommandError
- EasyCommand::ExitError
- Defined in:
- lib/easy_command.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Attributes inherited from CommandError
Instance Method Summary collapse
-
#initialize(message = nil, code = nil, result: nil) ⇒ ExitError
constructor
A new instance of ExitError.
Constructor Details
#initialize(message = nil, code = nil, result: nil) ⇒ ExitError
Returns a new instance of ExitError.
29 30 31 32 |
# File 'lib/easy_command.rb', line 29 def initialize( = nil, code = nil, result: nil) @result = result super(, code) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
27 28 29 |
# File 'lib/easy_command.rb', line 27 def result @result end |