Class: Swt::RRunnable

Inherits:
Object
  • Object
show all
Defined in:
lib/swt/minimal.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ RRunnable

Returns a new instance of RRunnable.



38
39
40
# File 'lib/swt/minimal.rb', line 38

def initialize(&block)
  @block = block
end

Instance Method Details

#runObject



42
43
44
# File 'lib/swt/minimal.rb', line 42

def run
  @block.call
end