|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.ast.util.ArgsUtil
Constructor Summary | |
ArgsUtil()
|
Method Summary | |
static IRubyObject[] |
convertToJavaArray(IRubyObject value)
|
static RubyArray |
convertToRubyArray(Ruby runtime,
IRubyObject value,
boolean coerce)
This name may be a bit misleading, since this also attempts to coerce array behavior using to_ary. |
static IRubyObject[] |
popArray(IRubyObject[] array)
Remove first element from array |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ArgsUtil()
Method Detail |
public static IRubyObject[] convertToJavaArray(IRubyObject value)
public static RubyArray convertToRubyArray(Ruby runtime, IRubyObject value, boolean coerce)
runtime
- The JRuby runtimevalue
- The value to convertcoerce
- Whether to coerce using to_ary or just wrap with an arraypublic static IRubyObject[] popArray(IRubyObject[] array)
array
- to have first element "popped" off
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |