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
.
27 28 29 |
# File 'lib/chione/manager.rb', line 27 def initialize( world, * ) @world = world end |
Instance Attribute Details
#world ⇒ Object (readonly)
The World which the Manager belongs to
37 38 39 |
# File 'lib/chione/manager.rb', line 37 def world @world end |
Instance Method Details
#start ⇒ Object
Start the Manager as the world is starting. Derivatives must implement this method.
42 43 44 |
# File 'lib/chione/manager.rb', line 42 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.
49 50 51 |
# File 'lib/chione/manager.rb', line 49 def stop raise NotImplementedError, "%p does not implement required method #stop" % [ self.class ] end |