Skip to content

Instantly share code, notes, and snippets.

@cdwijayarathna
Created April 27, 2015 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdwijayarathna/2242156725b74bfd4e5f to your computer and use it in GitHub Desktop.
Save cdwijayarathna/2242156725b74bfd4e5f to your computer and use it in GitHub Desktop.
@JRubyMethod(meta=true)
public static IRubyObject open(ThreadContext context, IRubyObject self, IRubyObject json, Block block) {
System.out.println("Doc.Open");
block.yield(context, true);
return context.nil;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment