Class: Hakuban::ObjectManager

Inherits:
Hash
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#contractObject

Returns the value of attribute contract.



536
537
538
# File 'lib/hakuban/hakuban.rb', line 536

def contract
  @contract
end

#objectsObject (readonly)

Returns the value of attribute objects.



536
537
538
# File 'lib/hakuban/hakuban.rb', line 536

def objects
  @objects
end

Instance Method Details

#dropObject



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