Class: BlockRunner
Overview
these two are from kofno.wordpress.com/2007/05/05/jruby-swingutilitiesinvoke_block_later/
Instance Method Summary collapse
-
#initialize(&proc) ⇒ BlockRunner
constructor
A new instance of BlockRunner.
- #run ⇒ Object
Constructor Details
#initialize(&proc) ⇒ BlockRunner
Returns a new instance of BlockRunner.
4 5 6 |
# File 'lib/clevic/swing/extensions.rb', line 4 def initialize(&proc) @p = proc end |
Instance Method Details
#run ⇒ Object
8 9 10 |
# File 'lib/clevic/swing/extensions.rb', line 8 def run @p.call end |