Sha256: e6a687b7dee36fda156b84277b113fd5f1ca8eb63b2ad925a4758d3438fa66ad

Contents?: true

Size: 241 Bytes

Versions: 17

Compression:

Stored size: 241 Bytes

Contents

class RunnableWrapper
  
  def initialize(block)
    @block = block
    @native = Java::com.droiuby.wrappers.RunnableRubyWrapper.new(_execution_bundle,self)
  end
  
  def run
    @block.call
  end
  
  def to_native
    @native
  end
  
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
droiuby-0.3.6 lib/droiuby/wrappers/runnable_wrapper.rb
droiuby-0.3.5 lib/droiuby/wrappers/runnable_wrapper.rb
droiuby-0.3.4 lib/droiuby/wrappers/runnable_wrapper.rb
droiuby-0.3.3 lib/droiuby/wrappers/runnable_wrapper.rb
droiuby-0.3.2 lib/droiuby/wrappers/runnable_wrapper.rb
droiuby-0.3.1 lib/droiuby/wrappers/runnable_wrapper.rb
droiuby-0.3.0 lib/droiuby/wrappers/runnable_wrapper.rb
droiuby-0.2.9 lib/droiuby/wrappers/runnable_wrapper.rb
droiuby-0.2.8 lib/droiuby/wrappers/runnable_wrapper.rb
droiuby-0.2.7 lib/droiuby/wrappers/runnable_wrapper.rb
droiuby-0.2.6 lib/droiuby/wrappers/runnable_wrapper.rb
droiuby-0.2.5 lib/droiuby/wrappers/runnable_wrapper.rb
droiuby-0.2.4 lib/droiuby/wrappers/runnable_wrapper.rb
droiuby-0.2.3 lib/droiuby/wrappers/runnable_wrapper.rb
droiuby-0.2.2 lib/droiuby/wrappers/runnable_wrapper.rb
droiuby-0.2.1 lib/droiuby/wrappers/runnable_wrapper.rb
droiuby-0.2.0 lib/droiuby/wrappers/runnable_wrapper.rb