Package org.jruby.internal.runtime
Class GlobalVariables
java.lang.Object
org.jruby.internal.runtime.GlobalVariables
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IRubyObjectprivate final Map<String,GlobalVariable> private final Ruby -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCreates a new global variable which links to the oldName global variable.private GlobalVariablecreateIfNotDefined(String name) voiddefine(String name, IAccessor accessor, GlobalVariable.Scope scope) voiddefineReadonly(String name, IAccessor accessor, GlobalVariable.Scope scope) getNames()getVariable(String name) booleanset(String name, IRubyObject value) voidsetDefaultSeparator(IRubyObject defaultSeparator) voidsetTraceVar(String name, RubyProc proc) voiduntraceVar(String name) booleanuntraceVar(String name, IRubyObject command)
-
Field Details
-
runtime
-
globalVariables
-
defaultSeparator
-
-
Constructor Details
-
GlobalVariables
-
-
Method Details
-
define
-
defineReadonly
-
isDefined
-
alias
Creates a new global variable which links to the oldName global variable.- Parameters:
name-oldName-
-
get
-
getVariable
-
set
-
clear
-
setTraceVar
-
untraceVar
-
untraceVar
-
getNames
-
createIfNotDefined
-
getDefaultSeparator
-
setDefaultSeparator
-