Skip to content

Instantly share code, notes, and snippets.

@calavera
Created October 15, 2009 09:46
Show Gist options
  • Save calavera/210857 to your computer and use it in GitHub Desktop.
Save calavera/210857 to your computer and use it in GitHub Desktop.
@JRubyMethod(name = "initialize", visibility = Visibility.PRIVATE, compat = CompatVersion.RUBY1_9)
public IRubyObject initialize19(ThreadContext context, Block block) {
if (!block.isGiven()) {
throw context.getRuntime().newArgumentError(0, 1);
} else {
// I DON'T KNOW WHAT TO DO WITH THE BLOCK
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment