Package org.jruby.internal.runtime
Class GlobalVariables
java.lang.Object
org.jruby.internal.runtime.GlobalVariables
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Creates a new global variable which links to the oldName global variable.void
define
(String name, IAccessor accessor, GlobalVariable.Scope scope) void
defineReadonly
(String name, IAccessor accessor, GlobalVariable.Scope scope) <State> void
eachName
(ThreadContext context, State state, TriConsumer<ThreadContext, State, String> consumer) getNames()
getVariable
(String name) boolean
set
(String name, IRubyObject value) void
setDefaultSeparator
(IRubyObject defaultSeparator) void
setTraceVar
(String name, RubyProc proc) int
size()
void
untraceVar
(String name) boolean
untraceVar
(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()
-