Package org.jruby.internal.runtime
Class GlobalVariable
java.lang.Object
org.jruby.internal.runtime.GlobalVariable
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
forceValue
(IRubyObject newValue) read-only variables like $FILENAME are ony read-only to the user.getScope()
void
boolean
static GlobalVariable
newUndefined
(Ruby runtime, String name) boolean
removeTrace
(IRubyObject command) void
void
setAccessor
(IAccessor accessor) void
trace
(IRubyObject value)
-
Constructor Details
-
GlobalVariable
-
-
Method Details
-
newUndefined
-
getAccessor
-
getScope
-
getTraces
-
addTrace
-
removeTrace
-
removeTraces
public void removeTraces() -
setAccessor
-
isTracing
public boolean isTracing() -
trace
-
forceValue
read-only variables like $FILENAME are ony read-only to the user. We need to change them behind the curtain.- Parameters:
newValue
-
-
getInvalidator
-
invalidate
public void invalidate()
-