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



37
38
39
# File 'lib/metacosm.rb', line 37

def simulation
  @simulation
end

Instance Method Details

#fire(command) ⇒ Object



38
39
40
# File 'lib/metacosm.rb', line 38

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