Module: QML::Reactive::Bindable::Resolver Private

Defined in:
lib/qml/reactive/bindable.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.add(property) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



40
41
42
43
# File 'lib/qml/reactive/bindable.rb', line 40

def add(property)
  current = @sources_stack.last
  current && current << property
end

.eval_and_resolve(&block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



34
35
36
37
38
# File 'lib/qml/reactive/bindable.rb', line 34

def eval_and_resolve(&block)
  @sources_stack.push([])
  ret = block.call
  [ret, @sources_stack.pop]
end