Exception: Braingasm::ExitSignal
- Inherits:
-
VMError
- Object
- RuntimeError
- BraingasmError
- VMError
- Braingasm::ExitSignal
- Defined in:
- lib/braingasm/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code = 0) ⇒ ExitSignal
constructor
A new instance of ExitSignal.
Methods inherited from BraingasmError
Constructor Details
#initialize(code = 0) ⇒ ExitSignal
Returns a new instance of ExitSignal.
32 33 34 |
# File 'lib/braingasm/errors.rb', line 32 def initialize(code=0) @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
31 32 33 |
# File 'lib/braingasm/errors.rb', line 31 def code @code end |