Module: Glimmer::DataBinding::Tk::OneTimeObserver
- Defined in:
- lib/glimmer/data_binding/tk/one_time_observer.rb
Overview
Decorator for Observer that ensures it is only called once (subsequent invocations of call method do nothing)
Instance Method Summary collapse
Instance Method Details
#call(value) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/glimmer/data_binding/tk/one_time_observer.rb', line 30 def call(value) unless @called super @called = true end end |