Skip to content

Instantly share code, notes, and snippets.

@jabley
Created October 15, 2009 09:47
Show Gist options
  • Save jabley/210859 to your computer and use it in GitHub Desktop.
Save jabley/210859 to your computer and use it in GitHub Desktop.
@JRubyMethod(name = "initialize", visibility = Visibility.PUBLIC)
public IRubyObject initialize(ThreadContext context, Block block) {
if (!block.isGiven()) {
/* Probably should fail? Check RubySpecs */
}
return this;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment