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 TypeMethodDescriptionvoidvoidforceValue(IRubyObject newValue) read-only variables like $FILENAME are ony read-only to the user.getScope()voidbooleanstatic GlobalVariablenewUndefined(Ruby runtime, String name) booleanremoveTrace(IRubyObject command) voidvoidsetAccessor(IAccessor accessor) voidtrace(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()
-