Package org.jruby.internal.runtime
Class GlobalVariables
java.lang.Object
org.jruby.internal.runtime.GlobalVariables
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCreates a new global variable which links to the oldName global variable.voiddefine(String name, IAccessor accessor, GlobalVariable.Scope scope) voiddefineReadonly(String name, IAccessor accessor, GlobalVariable.Scope scope) <State> voideachName(ThreadContext context, State state, TriConsumer<ThreadContext, State, String> consumer) getNames()getVariable(String name) booleanset(String name, IRubyObject value) voidsetDefaultSeparator(IRubyObject defaultSeparator) voidsetTraceVar(String name, RubyProc proc) intsize()voiduntraceVar(String name) booleanuntraceVar(String name, IRubyObject command)
-
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
-
eachName
public <State> void eachName(ThreadContext context, State state, TriConsumer<ThreadContext, State, String> consumer) -
getDefaultSeparator
-
setDefaultSeparator
-
size
public int size()
-