Sha256: 6e13652a5f3fd8efe08f66ebbdf89fdd0b5b3a977eb53567e688118e63db6719
Contents?: true
Size: 528 Bytes
Versions: 17
Compression:
Stored size: 528 Bytes
Contents
package rcd_test; import org.jruby.Ruby; import org.jruby.anno.JRubyMethod; import org.jruby.runtime.builtin.IRubyObject; import org.jruby.anno.JRubyModule; import org.jruby.runtime.ThreadContext; @JRubyModule(name = "RcdTest") public class RubyRcdTest { @JRubyMethod(name = "do_something", module = true, meta = true) public static IRubyObject buildSelfString(ThreadContext context, IRubyObject recv) { Ruby runtime = context.getRuntime(); return runtime.newString("something has been done"); } }
Version data entries
17 entries across 17 versions & 1 rubygems