org.jruby.internal.runtime
Class GlobalVariables
java.lang.Object
org.jruby.internal.runtime.GlobalVariables
- All Implemented Interfaces:
- IGlobalVariables
- public class GlobalVariables
- extends java.lang.Object
- implements IGlobalVariables
- Version:
- $Revision: 1.5 $
- Author:
- jpetersen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GlobalVariables
public GlobalVariables(Ruby runtime)
define
public void define(java.lang.String name,
IAccessor accessor)
- Specified by:
define
in interface IGlobalVariables
defineReadonly
public void defineReadonly(java.lang.String name,
IAccessor accessor)
- Specified by:
defineReadonly
in interface IGlobalVariables
isDefined
public boolean isDefined(java.lang.String name)
- Specified by:
isDefined
in interface IGlobalVariables
alias
public void alias(java.lang.String name,
java.lang.String oldName)
- Creates a new global variable which links to
the oldName global variable.
WANRING we are already using the 1.7.1 behaviour.
- Specified by:
alias
in interface IGlobalVariables
get
public IRubyObject get(java.lang.String name)
- Specified by:
get
in interface IGlobalVariables
set
public IRubyObject set(java.lang.String name,
IRubyObject value)
- Specified by:
set
in interface IGlobalVariables
getNames
public java.util.Iterator getNames()
- Specified by:
getNames
in interface IGlobalVariables
Copyright © 2002 Jan Arne Petersen. All Rights Reserved.