Module: Java::java::lang::Runnable

Defined in:
core/src/main/ruby/jruby/java/java_ext/java.lang.rb

Overview

java.lang.Runnable instances allow for a `to_proc` conversion.

See Also:

Instance Method Summary (collapse)

Instance Method Details

- (Proc) to_proc

Returns calling #run when caled

Returns:

  • (Proc)

    calling #run when caled



36
37
38
39
# File 'core/src/main/ruby/jruby/java/java_ext/java.lang.rb', line 36

def to_proc
  # stub implemented in org.jruby.javasupport.ext.JavaLang.java
  # proc { self.run }
end