Class: Metacosm::EventListener

Inherits:
Struct
  • Object
show all
Defined in:
lib/metacosm.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#simulationObject

Returns the value of attribute simulation

Returns:

  • (Object)

    the current value of simulation



66
67
68
# File 'lib/metacosm.rb', line 66

def simulation
  @simulation
end

Instance Method Details

#fire(command) ⇒ Object



67
68
69
# File 'lib/metacosm.rb', line 67

def fire(command)
  self.simulation.fire(command)
end