Exception: RobotArmy::Exit

Inherits:
Exception
  • Object
show all
Defined in:
lib/robot-army.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status = 0) ⇒ Exit

Returns a new instance of Exit.



45
46
47
# File 'lib/robot-army.rb', line 45

def initialize(status=0)
  @status = status
end

Instance Attribute Details

#statusObject

Returns the value of attribute status.



43
44
45
# File 'lib/robot-army.rb', line 43

def status
  @status
end