public final class ArgsUtil
extends java.lang.Object
| Constructor and Description |
|---|
ArgsUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
arrayLength(IRubyObject node) |
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 RubyArray |
convertToRubyArrayWithCoerce(Ruby runtime,
IRubyObject value) |
static IRubyObject[] |
popArray(IRubyObject[] array)
Remove first element from array
|
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 RubyArray convertToRubyArrayWithCoerce(Ruby runtime, IRubyObject value)
public static IRubyObject[] popArray(IRubyObject[] array)
array - to have first element "popped" offpublic static int arrayLength(IRubyObject node)
Copyright © 2002-2009 JRuby Team. All Rights Reserved.