org.jruby
Class Ruby

java.lang.Object
  extended byorg.jruby.Ruby

public final class Ruby
extends java.lang.Object

The jruby runtime.


Nested Class Summary
 class Ruby.CallTraceFuncHook
          Call the trace function MRI: eval.c - call_trace_func
 
Field Summary
 int moduleLastId
           
 int symbolLastId
           
 
Method Summary
 void addEventHook(EventHook hook)
           
 void addFinalizer(RubyObject.Finalizer finalizer)
           
 CallbackFactory callbackFactory(java.lang.Class type)
           
 void callEventHooks(ThreadContext context, int event, java.lang.String file, int line, java.lang.String name, IRubyObject type)
           
 void checkSafeString(IRubyObject object)
           
 IRubyObject compileAndRun(Node node)
           
 IRubyObject compileOrFallbackAndRun(Node node)
           
 RubyClass defineClass(java.lang.String name, RubyClass superClass, ObjectAllocator allocator)
          Define a new class with name 'name' and super class 'superClass'.
 RubyClass defineClassUnder(java.lang.String name, RubyClass superClass, ObjectAllocator allocator, SinglyLinkedList parentCRef)
           
 void defineGlobalConstant(java.lang.String name, IRubyObject value)
          rb_define_global_const
 RubyModule defineModule(java.lang.String name)
          rb_define_module / rb_define_module_id
 RubyModule defineModuleUnder(java.lang.String name, SinglyLinkedList parentCRef)
           
 void defineReadonlyVariable(java.lang.String name, IRubyObject value)
          defines a readonly global variable
 void defineVariable(GlobalVariable variable)
          Defines a global variable
 IRubyObject eval(Node node)
           
 IRubyObject evalScript(java.io.Reader reader, java.lang.String name)
           
 IRubyObject evalScript(java.lang.String script)
          Evaluates a script and returns a RubyObject.
 RubyClass getArray()
           
 CacheMap getCacheMap()
          Retrieve mappings of cached methods to where they have been cached.
 RubyClass getClass(java.lang.String name)
          Returns a class from the instance pool.
 RubyModule getClassFromPath(java.lang.String path)
           
 ThreadContext getCurrentContext()
           
 java.lang.String getCurrentDirectory()
           
 IRubyObject getDebug()
          Getter for property isDebug.
static Ruby getDefaultInstance()
          Returns a default instance of the JRuby runtime.
 RubyModule getEnumerable()
           
 java.io.PrintStream getErr()
           
 java.io.PrintStream getErrorStream()
           
 RubyBoolean getFalse()
          Returns the "false" instance from the instance pool.
 RubyClass getFixnum()
           
 RubyFixnum[] getFixnumCache()
           
 long getGlobalState()
          GET_VM_STATE_VERSION
 GlobalVariables getGlobalVariables()
           
 RubyClass getHash()
           
 java.io.InputStream getIn()
           
 java.io.InputStream getInputStream()
           
 RubyInstanceConfig getInstanceConfig()
           
 java.util.Hashtable getIoHandlers()
           
 JavaSupport getJavaSupport()
           
 JRubyClassLoader getJRubyClassLoader()
           
 java.lang.String getJRubyHome()
           
 KCode getKCode()
           
 RubyModule getKernel()
           
 LoadService getLoadService()
          Returns the loadService.
 RubyModule getModule(java.lang.String name)
           
 IRubyObject getNil()
          Returns the "nil" singleton instance.
 RubyClass getNilClass()
           
 RubyClass getObject()
           
 ObjectSpace getObjectSpace()
           
 RubyModule getOrCreateModule(java.lang.String name)
          In the current context, get the named module.
 java.io.PrintStream getOut()
           
 java.io.PrintStream getOutputStream()
           
 Profile getProfile()
           
 java.util.Random getRandom()
           
 long getRandomSeed()
           
 java.util.Map getRuntimeInformation()
           
 int getSafeLevel()
          Getter for property securityLevel.
 MethodSelectorTable getSelectorTable()
           
 int getStackTraces()
           
 long getStartTime()
           
 RubyClass getString()
           
 RubySymbol.SymbolTable getSymbolTable()
           
 ThreadService getThreadService()
           
 IRubyObject getTmsStruct()
           
 IRubyObject getTopSelf()
          Getter for property rubyTopSelf.
 RubyBoolean getTrue()
          Returns the "true" instance from the instance pool.
 IRubyObject getUndef()
           
 IRubyObject getVerbose()
          Getter for property isVerbose.
 RubyWarnings getWarnings()
           
 boolean hasEventHooks()
           
 void incGlobalState()
          INC_VM_STATE_VERSION
 long incrementRandomSeedSequence()
           
 boolean isClassDefined(java.lang.String name)
           
 boolean isDoNotReverseLookupEnabled()
           
 boolean isGlobalAbortOnExceptionEnabled()
           
 boolean isObjectSpaceEnabled()
           
static boolean isSecurityRestricted()
           
 void loadFile(java.io.File file)
          Loads, compiles and interprets a Ruby file.
 void loadNode(java.lang.String scriptName, Node node)
           
 void loadScript(RubyString scriptName, RubyString source)
          This method compiles and interprets a Ruby script.
 void loadScript(Script script)
           
 void loadScript(java.lang.String scriptName, java.io.Reader source)
           
 RaiseException newArgumentError(int got, int expected)
           
 RaiseException newArgumentError(java.lang.String message)
           
 RubyArray newArray()
           
 RubyArray newArray(int size)
           
 RubyArray newArray(IRubyObject object)
           
 RubyArray newArray(IRubyObject[] objects)
           
 RubyArray newArray(IRubyObject car, IRubyObject cdr)
           
 RubyArray newArray(java.util.List list)
           
 RubyArray newArrayLight()
           
 RubyArray newArrayNoCopy(IRubyObject[] objects)
           
 RubyArray newArrayNoCopyLight(IRubyObject[] objects)
           
 RubyBinding newBinding()
           
 RubyBinding newBinding(Block block)
           
 RubyBoolean newBoolean(boolean value)
           
 RaiseException newEOFError()
           
 RaiseException newErrnoEADDRINUSEError()
           
 RaiseException newErrnoEBADFError()
           
 RaiseException newErrnoEBADFError(java.lang.String message)
           
 RaiseException newErrnoECONNREFUSEDError()
           
 RaiseException newErrnoEDOMError(java.lang.String message)
           
 RaiseException newErrnoEEXISTError(java.lang.String message)
           
 RaiseException newErrnoEINVALError()
           
 RaiseException newErrnoEINVALError(java.lang.String message)
           
 RaiseException newErrnoENOENTError()
           
 RaiseException newErrnoENOENTError(java.lang.String message)
           
 RaiseException newErrnoESPIPEError()
           
 RaiseException newErrnoESPIPEError(java.lang.String message)
           
 RubyFixnum newFixnum(long value)
           
 RubyFloat newFloat(double value)
           
 RaiseException newFloatDomainError(java.lang.String message)
           
 RaiseException newFrozenError(java.lang.String objectType)
           
 RaiseException newIndexError(java.lang.String message)
           
static Ruby newInstance(java.io.InputStream in, java.io.PrintStream out, java.io.PrintStream err)
          Returns a default instance of the JRuby runtime configured with the given input, output and error streams.
static Ruby newInstance(RubyInstanceConfig config)
          Returns a default instance of the JRuby runtime configured as provided.
 RaiseException newInvalidEncoding(java.lang.String message)
           
 RaiseException newIOError(java.lang.String message)
           
 RaiseException newIOErrorFromException(java.io.IOException ioe)
           
 RaiseException newLoadError(java.lang.String message)
           
 RaiseException newLocalJumpError(java.lang.String reason, IRubyObject exitValue, java.lang.String message)
           
 RaiseException newNameError(java.lang.String message, java.lang.String name)
           
 RaiseException newNoMethodError(java.lang.String message, java.lang.String name, IRubyObject args)
           
 RaiseException newNotImplementedError(java.lang.String message)
           
 RubyNumeric newNumeric()
           
 RubyProc newProc(boolean isLambda, Block block)
           
 RaiseException newRangeError(java.lang.String message)
           
 RaiseException newRegexpError(java.lang.String message)
           
 RubyFileStat newRubyFileStat(java.lang.String file)
           
 RaiseException newRuntimeError(java.lang.String message)
           
 RaiseException newSecurityError(java.lang.String message)
           
 RaiseException newStandardError(java.lang.String message)
           
 RubyString newString()
           
 RubyString newString(ByteList byteList)
           
 RubyString newString(java.lang.String string)
           
 RubyString newStringShared(ByteList byteList)
           
 RubySymbol newSymbol(java.lang.String string)
           
 RaiseException newSyntaxError(java.lang.String message)
           
 RaiseException newSystemCallError(java.lang.String message)
           
 RaiseException newSystemExit(int status)
           
 RaiseException newSystemStackError(java.lang.String message)
           
 RaiseException newThreadError(java.lang.String message)
           
 RubyTime newTime(long milliseconds)
           
 RaiseException newTypeError(IRubyObject receivedObject, RubyClass expectedType)
           
 RaiseException newTypeError(java.lang.String message)
           
 RaiseException newZeroDivisionError()
           
 Node parse(java.io.Reader content, java.lang.String file, DynamicScope scope, int lineNumber)
           
 Node parse(java.lang.String content, java.lang.String file, DynamicScope scope, int lineNumber)
           
 void printError(RubyException excp)
          Prints an error with backtrace to the error stream.
 IRubyObject pushExitBlock(RubyProc proc)
          Push block onto exit stack.
 boolean registerInspecting(java.lang.Object obj)
           
 void removeEventHook(EventHook hook)
           
 void removeFinalizer(RubyObject.Finalizer finalizer)
           
 void secure(int level)
           
 void setCurrentDirectory(java.lang.String dir)
           
 void setDebug(IRubyObject debug)
          Setter for property isDebug.
 void setDoNotReverseLookupEnabled(boolean b)
           
 void setGlobalAbortOnExceptionEnabled(boolean enable)
           
 void setGlobalVariables(GlobalVariables globalVariables)
           
 void setJRubyHome(java.lang.String home)
           
 void setKCode(KCode kcode)
           
 void setRandomSeed(long randomSeed)
           
 void setSafeLevel(int safeLevel)
          Setter for property securityLevel.
static void setSecurityRestricted(boolean restricted)
           
 void setStackTraces(int stackTraces)
           
 void setTraceFunction(RubyProc traceFunction)
           
 void setVerbose(IRubyObject verbose)
          Setter for property isVerbose.
 void tearDown()
          Make sure Kernel#at_exit procs get invoked on runtime shutdown.
 void unregisterInspecting(java.lang.Object obj)
           
 IRubyObject ycompileAndRun(Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

symbolLastId

public int symbolLastId

moduleLastId

public int moduleLastId
Method Detail

getDefaultInstance

public static Ruby getDefaultInstance()
Returns a default instance of the JRuby runtime.

Returns:
the JRuby runtime

newInstance

public static Ruby newInstance(RubyInstanceConfig config)
Returns a default instance of the JRuby runtime configured as provided.

Parameters:
config - the instance configuration
Returns:
the JRuby runtime

newInstance

public static Ruby newInstance(java.io.InputStream in,
                               java.io.PrintStream out,
                               java.io.PrintStream err)
Returns a default instance of the JRuby runtime configured with the given input, output and error streams.

Parameters:
in - the custom input stream
out - the custom output stream
err - the custom error stream
Returns:
the JRuby runtime

evalScript

public IRubyObject evalScript(java.io.Reader reader,
                              java.lang.String name)

evalScript

public IRubyObject evalScript(java.lang.String script)
Evaluates a script and returns a RubyObject.


eval

public IRubyObject eval(Node node)

compileOrFallbackAndRun

public IRubyObject compileOrFallbackAndRun(Node node)

compileAndRun

public IRubyObject compileAndRun(Node node)

ycompileAndRun

public IRubyObject ycompileAndRun(Node node)

getObject

public RubyClass getObject()

getUndef

public IRubyObject getUndef()

getKernel

public RubyModule getKernel()

getEnumerable

public RubyModule getEnumerable()

getString

public RubyClass getString()

getFixnum

public RubyClass getFixnum()

getHash

public RubyClass getHash()

getArray

public RubyClass getArray()

getTmsStruct

public IRubyObject getTmsStruct()

getTrue

public RubyBoolean getTrue()
Returns the "true" instance from the instance pool.

Returns:
The "true" instance.

getFalse

public RubyBoolean getFalse()
Returns the "false" instance from the instance pool.

Returns:
The "false" instance.

getNil

public IRubyObject getNil()
Returns the "nil" singleton instance.

Returns:
"nil"

getNilClass

public RubyClass getNilClass()

getModule

public RubyModule getModule(java.lang.String name)

getClass

public RubyClass getClass(java.lang.String name)
Returns a class from the instance pool.

Parameters:
name - The name of the class.
Returns:
The class.

defineClass

public RubyClass defineClass(java.lang.String name,
                             RubyClass superClass,
                             ObjectAllocator allocator)
Define a new class with name 'name' and super class 'superClass'. MRI: rb_define_class / rb_define_class_id


defineClassUnder

public RubyClass defineClassUnder(java.lang.String name,
                                  RubyClass superClass,
                                  ObjectAllocator allocator,
                                  SinglyLinkedList parentCRef)

defineModule

public RubyModule defineModule(java.lang.String name)
rb_define_module / rb_define_module_id


defineModuleUnder

public RubyModule defineModuleUnder(java.lang.String name,
                                    SinglyLinkedList parentCRef)

getOrCreateModule

public RubyModule getOrCreateModule(java.lang.String name)
In the current context, get the named module. If it doesn't exist a new module is created.


getSafeLevel

public int getSafeLevel()
Getter for property securityLevel.

Returns:
Value of property securityLevel.

setSafeLevel

public void setSafeLevel(int safeLevel)
Setter for property securityLevel.

Parameters:
safeLevel - New value of property securityLevel.

getKCode

public KCode getKCode()

setKCode

public void setKCode(KCode kcode)

secure

public void secure(int level)

checkSafeString

public void checkSafeString(IRubyObject object)

getCacheMap

public CacheMap getCacheMap()
Retrieve mappings of cached methods to where they have been cached. When a cached method needs to be invalidated this map can be used to remove all places it has been cached.

Returns:
the mappings of where cached methods have been stored

getRuntimeInformation

public java.util.Map getRuntimeInformation()
See Also:
getRuntimeInformation()

getSelectorTable

public MethodSelectorTable getSelectorTable()

defineGlobalConstant

public void defineGlobalConstant(java.lang.String name,
                                 IRubyObject value)
rb_define_global_const


isClassDefined

public boolean isClassDefined(java.lang.String name)

getTopSelf

public IRubyObject getTopSelf()
Getter for property rubyTopSelf.

Returns:
Value of property rubyTopSelf.

setCurrentDirectory

public void setCurrentDirectory(java.lang.String dir)

getCurrentDirectory

public java.lang.String getCurrentDirectory()

getVerbose

public IRubyObject getVerbose()
Getter for property isVerbose.

Returns:
Value of property isVerbose.

setVerbose

public void setVerbose(IRubyObject verbose)
Setter for property isVerbose.

Parameters:
verbose - New value of property isVerbose.

getDebug

public IRubyObject getDebug()
Getter for property isDebug.

Returns:
Value of property isDebug.

setDebug

public void setDebug(IRubyObject debug)
Setter for property isDebug.

Parameters:
debug - New value of property isDebug.

getJavaSupport

public JavaSupport getJavaSupport()

getJRubyClassLoader

public JRubyClassLoader getJRubyClassLoader()

defineVariable

public void defineVariable(GlobalVariable variable)
Defines a global variable


defineReadonlyVariable

public void defineReadonlyVariable(java.lang.String name,
                                   IRubyObject value)
defines a readonly global variable


parse

public Node parse(java.io.Reader content,
                  java.lang.String file,
                  DynamicScope scope,
                  int lineNumber)

parse

public Node parse(java.lang.String content,
                  java.lang.String file,
                  DynamicScope scope,
                  int lineNumber)

getThreadService

public ThreadService getThreadService()

getCurrentContext

public ThreadContext getCurrentContext()

getLoadService

public LoadService getLoadService()
Returns the loadService.

Returns:
ILoadService

getWarnings

public RubyWarnings getWarnings()

getErrorStream

public java.io.PrintStream getErrorStream()

getInputStream

public java.io.InputStream getInputStream()

getOutputStream

public java.io.PrintStream getOutputStream()

getClassFromPath

public RubyModule getClassFromPath(java.lang.String path)

printError

public void printError(RubyException excp)
Prints an error with backtrace to the error stream. MRI: eval.c - error_print()


loadScript

public void loadScript(RubyString scriptName,
                       RubyString source)
This method compiles and interprets a Ruby script. It can be used if you want to use JRuby as a Macro language.


loadScript

public void loadScript(java.lang.String scriptName,
                       java.io.Reader source)

loadScript

public void loadScript(Script script)

loadNode

public void loadNode(java.lang.String scriptName,
                     Node node)

loadFile

public void loadFile(java.io.File file)
Loads, compiles and interprets a Ruby file. Used by Kernel#require.


addEventHook

public void addEventHook(EventHook hook)

removeEventHook

public void removeEventHook(EventHook hook)

setTraceFunction

public void setTraceFunction(RubyProc traceFunction)

callEventHooks

public void callEventHooks(ThreadContext context,
                           int event,
                           java.lang.String file,
                           int line,
                           java.lang.String name,
                           IRubyObject type)

hasEventHooks

public boolean hasEventHooks()

getGlobalVariables

public GlobalVariables getGlobalVariables()

setGlobalVariables

public void setGlobalVariables(GlobalVariables globalVariables)

callbackFactory

public CallbackFactory callbackFactory(java.lang.Class type)

pushExitBlock

public IRubyObject pushExitBlock(RubyProc proc)
Push block onto exit stack. When runtime environment exits these blocks will be evaluated.

Returns:
the element that was pushed onto stack

addFinalizer

public void addFinalizer(RubyObject.Finalizer finalizer)

removeFinalizer

public void removeFinalizer(RubyObject.Finalizer finalizer)

tearDown

public void tearDown()
Make sure Kernel#at_exit procs get invoked on runtime shutdown. This method needs to be explicitly called to work properly. I thought about using finalize(), but that did not work and I am not sure the runtime will be at a state to run procs by the time Ruby is going away. This method can contain any other things that need to be cleaned up at shutdown.


newArray

public RubyArray newArray()

newArrayLight

public RubyArray newArrayLight()

newArray

public RubyArray newArray(IRubyObject object)

newArray

public RubyArray newArray(IRubyObject car,
                          IRubyObject cdr)

newArray

public RubyArray newArray(IRubyObject[] objects)

newArrayNoCopy

public RubyArray newArrayNoCopy(IRubyObject[] objects)

newArrayNoCopyLight

public RubyArray newArrayNoCopyLight(IRubyObject[] objects)

newArray

public RubyArray newArray(java.util.List list)

newArray

public RubyArray newArray(int size)

newBoolean

public RubyBoolean newBoolean(boolean value)

newRubyFileStat

public RubyFileStat newRubyFileStat(java.lang.String file)

newFixnum

public RubyFixnum newFixnum(long value)

newFloat

public RubyFloat newFloat(double value)

newNumeric

public RubyNumeric newNumeric()

newProc

public RubyProc newProc(boolean isLambda,
                        Block block)

newBinding

public RubyBinding newBinding()

newBinding

public RubyBinding newBinding(Block block)

newString

public RubyString newString()

newString

public RubyString newString(java.lang.String string)

newString

public RubyString newString(ByteList byteList)

newStringShared

public RubyString newStringShared(ByteList byteList)

newSymbol

public RubySymbol newSymbol(java.lang.String string)

newTime

public RubyTime newTime(long milliseconds)

newRuntimeError

public RaiseException newRuntimeError(java.lang.String message)

newArgumentError

public RaiseException newArgumentError(java.lang.String message)

newArgumentError

public RaiseException newArgumentError(int got,
                                       int expected)

newErrnoEBADFError

public RaiseException newErrnoEBADFError()

newErrnoECONNREFUSEDError

public RaiseException newErrnoECONNREFUSEDError()

newErrnoEADDRINUSEError

public RaiseException newErrnoEADDRINUSEError()

newErrnoEINVALError

public RaiseException newErrnoEINVALError()

newErrnoENOENTError

public RaiseException newErrnoENOENTError()

newErrnoESPIPEError

public RaiseException newErrnoESPIPEError()

newErrnoEBADFError

public RaiseException newErrnoEBADFError(java.lang.String message)

newErrnoEINVALError

public RaiseException newErrnoEINVALError(java.lang.String message)

newErrnoENOENTError

public RaiseException newErrnoENOENTError(java.lang.String message)

newErrnoESPIPEError

public RaiseException newErrnoESPIPEError(java.lang.String message)

newErrnoEEXISTError

public RaiseException newErrnoEEXISTError(java.lang.String message)

newErrnoEDOMError

public RaiseException newErrnoEDOMError(java.lang.String message)

newIndexError

public RaiseException newIndexError(java.lang.String message)

newSecurityError

public RaiseException newSecurityError(java.lang.String message)

newSystemCallError

public RaiseException newSystemCallError(java.lang.String message)

newTypeError

public RaiseException newTypeError(java.lang.String message)

newThreadError

public RaiseException newThreadError(java.lang.String message)

newSyntaxError

public RaiseException newSyntaxError(java.lang.String message)

newRegexpError

public RaiseException newRegexpError(java.lang.String message)

newRangeError

public RaiseException newRangeError(java.lang.String message)

newNotImplementedError

public RaiseException newNotImplementedError(java.lang.String message)

newInvalidEncoding

public RaiseException newInvalidEncoding(java.lang.String message)

newNoMethodError

public RaiseException newNoMethodError(java.lang.String message,
                                       java.lang.String name,
                                       IRubyObject args)

newNameError

public RaiseException newNameError(java.lang.String message,
                                   java.lang.String name)

newLocalJumpError

public RaiseException newLocalJumpError(java.lang.String reason,
                                        IRubyObject exitValue,
                                        java.lang.String message)

newLoadError

public RaiseException newLoadError(java.lang.String message)

newFrozenError

public RaiseException newFrozenError(java.lang.String objectType)

newSystemStackError

public RaiseException newSystemStackError(java.lang.String message)

newSystemExit

public RaiseException newSystemExit(int status)

newIOError

public RaiseException newIOError(java.lang.String message)

newStandardError

public RaiseException newStandardError(java.lang.String message)

newIOErrorFromException

public RaiseException newIOErrorFromException(java.io.IOException ioe)

newTypeError

public RaiseException newTypeError(IRubyObject receivedObject,
                                   RubyClass expectedType)

newEOFError

public RaiseException newEOFError()

newZeroDivisionError

public RaiseException newZeroDivisionError()

newFloatDomainError

public RaiseException newFloatDomainError(java.lang.String message)

getSymbolTable

public RubySymbol.SymbolTable getSymbolTable()

setStackTraces

public void setStackTraces(int stackTraces)

getStackTraces

public int getStackTraces()

setRandomSeed

public void setRandomSeed(long randomSeed)

getRandomSeed

public long getRandomSeed()

getRandom

public java.util.Random getRandom()

getObjectSpace

public ObjectSpace getObjectSpace()

getIoHandlers

public java.util.Hashtable getIoHandlers()

getFixnumCache

public RubyFixnum[] getFixnumCache()

incrementRandomSeedSequence

public long incrementRandomSeedSequence()

getIn

public java.io.InputStream getIn()

getOut

public java.io.PrintStream getOut()

getErr

public java.io.PrintStream getErr()

isGlobalAbortOnExceptionEnabled

public boolean isGlobalAbortOnExceptionEnabled()

setGlobalAbortOnExceptionEnabled

public void setGlobalAbortOnExceptionEnabled(boolean enable)

isDoNotReverseLookupEnabled

public boolean isDoNotReverseLookupEnabled()

setDoNotReverseLookupEnabled

public void setDoNotReverseLookupEnabled(boolean b)

registerInspecting

public boolean registerInspecting(java.lang.Object obj)

unregisterInspecting

public void unregisterInspecting(java.lang.Object obj)

isObjectSpaceEnabled

public boolean isObjectSpaceEnabled()

getStartTime

public long getStartTime()

getProfile

public Profile getProfile()

getJRubyHome

public java.lang.String getJRubyHome()

setJRubyHome

public void setJRubyHome(java.lang.String home)

getInstanceConfig

public RubyInstanceConfig getInstanceConfig()

getGlobalState

public long getGlobalState()
GET_VM_STATE_VERSION


incGlobalState

public void incGlobalState()
INC_VM_STATE_VERSION


isSecurityRestricted

public static boolean isSecurityRestricted()

setSecurityRestricted

public static void setSecurityRestricted(boolean restricted)


Copyright © 2002-2007 JRuby Team. All Rights Reserved.