| Class | TheSource |
| In: |
daimoku-server/support.rb
|
| Parent: | Object |
This class is used to change the Source Code of the Simulation. Normally this is used by the Architect.
The class name should be unique and so that the Players can not instantiate this class.
This class is referenced within the Simulation, so it is instantiable within the Simulation.
TheSource.evaluate "class Apple; end" # creates the Apple class, outside the Simulation, from the inside! TheSource.evaluate "apple = Apple.new" # instantiates the Apple class, outside the Simulation, from the inside!
WARNING Changes the source code of the Simulation Server from inside the Simulation
Evaluate the source change into the TOP LEVEL BINDING of the Simulation Server