Class: Hakuban::ObjectManager
- Inherits:
-
Hash
- Object
- Hash
- Hakuban::ObjectManager
- Defined in:
- lib/hakuban/hakuban.rb
Overview
TODO: replace this mess (<Hash, dynamic mixings) with some “deref”
Defined Under Namespace
Modules: ExposedObjectManager, ExposedTagManager, ObservedObjectManager, ObservedTagManager Classes: ExposedObject, ManagedObject, ObservedObject
Instance Attribute Summary collapse
-
#contract ⇒ Object
Returns the value of attribute contract.
-
#objects ⇒ Object
readonly
Returns the value of attribute objects.
Instance Method Summary collapse
- #drop ⇒ Object
- #object_change(object) ⇒ Object
- #object_insert(object) ⇒ Object
- #object_remove(object) ⇒ Object
Instance Attribute Details
#contract ⇒ Object
Returns the value of attribute contract.
536 537 538 |
# File 'lib/hakuban/hakuban.rb', line 536 def contract @contract end |
#objects ⇒ Object (readonly)
Returns the value of attribute objects.
536 537 538 |
# File 'lib/hakuban/hakuban.rb', line 536 def objects @objects end |
Instance Method Details
#drop ⇒ Object
589 590 591 592 593 594 |
# File 'lib/hakuban/hakuban.rb', line 589 def drop @contract.stop_sending_objects_events_to(@queue) @queue.push [:control, :quit] @thread.join @queue, @contract, @thread, @objects = nil, nil, nil, {} end |
#object_change(object) ⇒ Object
580 581 582 |
# File 'lib/hakuban/hakuban.rb', line 580 def object_change(object) # noop default end |
#object_insert(object) ⇒ Object
576 577 578 |
# File 'lib/hakuban/hakuban.rb', line 576 def object_insert(object) # noop default end |
#object_remove(object) ⇒ Object
584 585 586 |
# File 'lib/hakuban/hakuban.rb', line 584 def object_remove(object) # noop default end |