Skip to content

Instantly share code, notes, and snippets.

@Who828

Who828/Fix.java Secret

Created January 13, 2015 20:05
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 Who828/a0d2a5af68c46bd4f6b7 to your computer and use it in GitHub Desktop.
Save Who828/a0d2a5af68c46bd4f6b7 to your computer and use it in GitHub Desktop.
if (args.length == 1 &&
args[0] instanceof RubyArray &&
((RubyArray) args[0]).getLength() == 1)
args = new IRubyObject[] {args[0].rbClone()};
else
args = args[0].convertToArray().toJavaArray();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment