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.



40
41
42
# File 'lib/swt/minimal.rb', line 40

def initialize(&block)
  @block = block
end

Instance Method Details

#runObject



44
45
46
# File 'lib/swt/minimal.rb', line 44

def run
  @block.call
end