Module: Glimmer::FiddleConsumer
- Included in:
- LibUI, LibUI::ControlProxy::AreaProxy, LibUI::ControlProxy::TableProxy
- Defined in:
- lib/glimmer/fiddle_consumer.rb
Instance Method Summary collapse
-
#fiddle_closure_block_caller(*args, &block) ⇒ Object
Protects Fiddle::Closure::BlockCaller objects from garbage collection.
Instance Method Details
#fiddle_closure_block_caller(*args, &block) ⇒ Object
Protects Fiddle::Closure::BlockCaller objects from garbage collection.
25 26 27 28 29 30 31 |
# File 'lib/glimmer/fiddle_consumer.rb', line 25 def fiddle_closure_block_caller(*args, &block) @blockcaller ||= [] args << [0] if args.size == 1 # Argument types are ommited blockcaller = ::Fiddle::Closure::BlockCaller.new(*args, &block) @blockcaller << blockcaller blockcaller end |