Top Level Namespace

Defined Under Namespace

Modules: Comparable, Enumerable, Errno, GC, Kernel, Marshal, ObjectSpace, Process, Signal Classes: ARGF, ArgumentError, Array, BasicObject, Bignum, Binding, Class, ClosedQueueError, Complex, ConditionVariable, Continuation, Data, Dir, EOFError, Encoding, EncodingError, Enumerator, Exception, FalseClass, Fiber, FiberError, File, FileTest, Fixnum, Float, FloatDomainError, Hash, IO, IOError, IndexError, Integer, Interrupt, KeyError, LoadError, LocalJumpError, MatchData, Math, Method, Module, Mutex, NameError, NilClass, NoMemoryError, NoMethodError, NotImplementedError, Numeric, Object, Proc, Queue, Random, Range, RangeError, Rational, Regexp, RegexpError, Ripper, RubyVM, RuntimeError, ScriptError, SecurityError, SignalException, SizedQueue, StandardError, StopIteration, String, Struct, Symbol, SyntaxError, SystemCallError, SystemExit, SystemStackError, Thread, ThreadError, ThreadGroup, Time, TracePoint, TrueClass, TypeError, UnboundMethod, UncaughtThrowError, ZeroDivisionError, fatal

Constant Summary collapse

TOPLEVEL_BINDING =

The Binding of the top level scope

rb_binding_new()
STDIN =

Holds the original stdin

rb_stdin
STDOUT =

Holds the original stdout

rb_stdout
STDERR =

Holds the original stderr

rb_stderr
ARGV =

ARGV contains the command line arguments used to run ruby.

A library like OptionParser can be used to process command-line arguments.

rb_argv
ENV =

ENV is a Hash-like accessor for environment variables.

See ENV (the class) for more details.

envtbl
SCRIPT_LINES__ =

When a Hash is assigned to SCRIPT_LINES__ the contents of files loaded after the assignment will be added as an Array of lines with the file name as the key.

Qnil
NIL =

An alias of nil

Qnil
TRUE =

An alias of true

Qtrue
FALSE =

An alias of false

Qfalse
RUBY_VERSION =

The running version of ruby

(version = MKSTR(version))
RUBY_RELEASE_DATE =

The date this ruby was released

MKSTR(release_date)
RUBY_PLATFORM =

The platform for this ruby

MKSTR(platform)
RUBY_PATCHLEVEL =

The patchlevel for this ruby. If this is a development build of ruby the patchlevel will be -1

MKINT(patchlevel)
RUBY_REVISION =

The SVN revision for this ruby.

MKINT(revision)
RUBY_DESCRIPTION =

The full ruby version string, like ruby -v prints’

MKSTR(description)
MKSTR(copyright)
RUBY_ENGINE =

The engine or interpreter this ruby uses.

ruby_engine_name = MKSTR(engine)
RUBY_ENGINE_VERSION =

The version of the engine or interpreter this ruby uses.

(1 ? version : MKSTR(version))