Class: Chione::Manager
- Inherits:
-
Object
- Object
- Chione::Manager
- Extended by:
- Loggability, Pluggability
- Includes:
- Inspection
- Defined in:
- lib/chione/manager.rb
Overview
The Manager class
Instance Attribute Summary collapse
-
#world ⇒ Object
readonly
The World which the Manager belongs to.
Instance Method Summary collapse
-
#initialize(world) ⇒ Manager
constructor
Create a new Chione::Manager for the specified
world. -
#start ⇒ Object
Start the Manager as the world is starting.
-
#stop ⇒ Object
Stop the Manager as the world is stopping.
Methods included from Inspection
Constructor Details
#initialize(world) ⇒ Manager
Create a new Chione::Manager for the specified world.
26 27 28 |
# File 'lib/chione/manager.rb', line 26 def initialize( world, * ) @world = world end |
Instance Attribute Details
#world ⇒ Object (readonly)
The World which the Manager belongs to
36 37 38 |
# File 'lib/chione/manager.rb', line 36 def world @world end |
Instance Method Details
#start ⇒ Object
Start the Manager as the world is starting. Derivatives must implement this method.
41 42 43 |
# File 'lib/chione/manager.rb', line 41 def start raise NotImplementedError, "%p does not implement required method #start" % [ self.class ] end |
#stop ⇒ Object
Stop the Manager as the world is stopping. Derivatives must implement this method.
48 49 50 |
# File 'lib/chione/manager.rb', line 48 def stop raise NotImplementedError, "%p does not implement required method #stop" % [ self.class ] end |