class Hakuban::ObjectManager::ObservedObject
TODO: remove the arity thing…
Public Instance Methods
data()
click to toggle source
# File lib/hakuban/hakuban.rb, line 656 def data if @contract.method(:object_state).arity == 1 @contract.object_state(@descriptor)&.data else @contract.object_state&.data end end
state()
click to toggle source
# File lib/hakuban/hakuban.rb, line 649 def state if @contract.method(:object_state).arity == 1 @contract.object_state(@descriptor) else @contract.object_state end end