Module: Roglew::DeferredContext
- Defined in:
- lib/roglew/contexts/deferred.rb
Instance Method Summary collapse
Instance Method Details
#deferred? ⇒ Boolean
3 4 5 |
# File 'lib/roglew/contexts/deferred.rb', line 3 def deferred? true end |
#finished ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/roglew/contexts/deferred.rb', line 7 def finished return unless self.calls.empty? bind self.calls.each { |target, method, args| send(target).public_send(method, *args) }.clear unbind nil end |
#immediate? ⇒ Boolean
15 16 17 |
# File 'lib/roglew/contexts/deferred.rb', line 15 def immediate? false end |