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!

Methods

dejavu   evaluate   load   new   sandbox=  

Public Class methods

WARNING Adds or changes the Simulation from inside the Simulation

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

WARNING Loads a file (usually containing a class definition) and creates a reference to the klass Once the reference is made, that klass becomes instantiable within the Simulation

Hides the Simulation from direct manipulation

[Validate]