org.jruby.ext.jruby
Class JRubyUtilLibrary
java.lang.Object
org.jruby.ext.jruby.JRubyUtilLibrary
- All Implemented Interfaces:
- Library
public class JRubyUtilLibrary
- extends java.lang.Object
- implements Library
Utilities library for all those methods that don't need the full 'java' library
to be loaded. This is done mostly for performance reasons. For example, for those
who only need to enable the object space, not loading 'java' might save 200-300ms
of startup time, like in case of jirb.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JRubyUtilLibrary
public JRubyUtilLibrary()
load
public void load(Ruby runtime,
boolean wrap)
throws java.io.IOException
- Specified by:
load
in interface Library
- Throws:
java.io.IOException
gc
public static void gc(IRubyObject recv)
getObjectSpaceEnabled
public static IRubyObject getObjectSpaceEnabled(IRubyObject recv)
setObjectSpaceEnabled
public static IRubyObject setObjectSpaceEnabled(IRubyObject recv,
IRubyObject arg)
getClassLoaderResources
public static IRubyObject getClassLoaderResources(IRubyObject recv,
IRubyObject arg)
Copyright © 2002-2009 JRuby Team. All Rights Reserved.