Exception: Braingasm::ExitSignal

Inherits:
VMError show all
Defined in:
lib/braingasm/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BraingasmError

#type

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

#codeObject (readonly)

Returns the value of attribute code.



31
32
33
# File 'lib/braingasm/errors.rb', line 31

def code
  @code
end