Class: Hakuban::ObjectManager::ObservedObject
- Inherits:
-
ManagedObject
- Object
- ManagedObject
- Hakuban::ObjectManager::ObservedObject
- Defined in:
- lib/hakuban/hakuban.rb
Overview
TODO: remove the arity thing…
Instance Attribute Summary
Attributes inherited from ManagedObject
Instance Method Summary collapse
Methods inherited from ManagedObject
Constructor Details
This class inherits a constructor from Hakuban::ObjectManager::ManagedObject
Instance Method Details
#data ⇒ Object
613 614 615 616 617 618 619 |
# File 'lib/hakuban/hakuban.rb', line 613 def data if @contract.method(:object_state).arity == 1 @contract.object_state(@descriptor)&.data else @contract.object_state&.data end end |
#state ⇒ Object
606 607 608 609 610 611 612 |
# File 'lib/hakuban/hakuban.rb', line 606 def state if @contract.method(:object_state).arity == 1 @contract.object_state(@descriptor) else @contract.object_state end end |