Package org.jruby
Class RubyGlobal
java.lang.Object
org.jruby.RubyGlobal
This class initializes global variables and constants.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classstatic classObligate string-keyed and string-valued hash, used for ENV.private static classprivate static classstatic classstatic classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classprivate static classstatic classprivate static final classA special accessor for getpid, to avoid loading the posix subsystem until it is needed.private static classprivate static classprivate static classprivate static classstatic classstatic classA Pseudo-hash whose keys and values are required to be Strings.static classprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionGlobals that generally should not be cached, because they are expected to change frequently if used. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateGlobals(Ruby runtime) private static voiddefineGlobalEnvConstants(Ruby runtime) static voidstatic voidinitSTDIO(Ruby runtime, GlobalVariables globals) private static ChannelprepareStdioChannel(Ruby runtime, STDIO stdio, Object stream) private static intunwrapDripStream(Object stream)
-
Field Details
-
UNCACHED_GLOBALS
Globals that generally should not be cached, because they are expected to change frequently if used. See jruby/jruby#4508.
-
-
Constructor Details
-
RubyGlobal
public RubyGlobal()
-
-
Method Details
-
initARGV
-
createGlobals
-
initSTDIO
-
prepareStdioChannel
-
unwrapDripStream
-
defineGlobalEnvConstants
-