| Class | MUES::LoadEnvironmentEvent |
| In: |
lib/mues/events/environmentevents.rb
(CVS)
|
| Parent: | EnvironmentEvent |
An event class used for instructing the MUES::Engine to load an environment.
| envClassName | [R] | The name of the Environment class to load. |
| name | [R] | The name to associate with the new environment |
Create and return a new event to load an instance of the environment specified by eventClassName (the name of the Environment class to load) and associate it with the given name. If the optional user argument is given (a MUES::User object), the status of the event will be sent to the User as an OutputEvent.
# File lib/mues/events/environmentevents.rb, line 90 def initialize( name, envClassName, user=nil ) checkEachType( [name,envClassName], ::String ) checkType( user, NilClass, MUES::User ) @name = name @envClassName = envClassName super( user ) end