org.jruby
Class Builtins
java.lang.Object
org.jruby.Builtins
- public class Builtins
- extends java.lang.Object
Builtins provides methods to create the built-ins classes and to convert
between the classes.
- Version:
- $Revision: 1.1 $
- Author:
- jpetersen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Builtins
public Builtins(Ruby ruby)
newArray
public RubyArray newArray()
toSymbol
public RubySymbol toSymbol(java.lang.String name)
toString
public RubyString toString(java.lang.String value)
toArray
public RubyArray toArray(IRubyObject value)
- Converts a RubyObject into a RubyArray.
If value is a RubyArray return value else
return a new one element array with value as the element.
toInteger
public RubyInteger toInteger(long value)
Copyright © 2002 Jan Arne Petersen. All Rights Reserved.