Object is the default root of all Ruby objects. Object inherits from BasicObject which allows creating alternate object hierarchies. Methods on Object are available to all classes unless explicitly overridden.
Object mixes in the Kernel module, making the built-in kernel functions globally accessible. Although the instance methods of Object are defined by the Kernel module, we have chosen to document them here for clarity.
When referencing constants in classes inheriting from Object you do not need to use the full namespace. For example, referencing File inside YourClass will find the top-level File class.
In the descriptions of Object’s methods, the parameter symbol refers to a symbol, which is either a quoted string or a Symbol (such as :name).
frozen_string_literal: false
Constants
NOENCODING = 32
DependencyConflict = Gem::Resolver::Conflict # :nodoc:
UnsatisfiableDepedencyError = Gem::UnsatisfiableDependencyError # :nodoc:
DependencyResolver = Gem::Resolver # :nodoc:
TimeoutError = Timeout::Error
ThWait = ThreadsWait
SCRIPT_LINES__ = {} unless defined? SCRIPT_LINES__
OptParse = OptionParser # :nodoc:
Synchronizer = Sync
Synchronizer_m = Sync_m
YAML = Psych # :nodoc:
ParseError = Racc::ParseError
Math = CMath # :nodoc:
FALSE = Qfalse
TRUE = Qtrue
NIL = Qnil
RUBY_ENGINE_VERSION = (1 ? version : MKSTR(version))
RUBY_ENGINE = ruby_engine_name = MKSTR(engine)
RUBY_COPYRIGHT = MKSTR(copyright)
RUBY_DESCRIPTION = MKSTR(description)
RUBY_REVISION = MKINT(revision)
RUBY_PATCHLEVEL = MKINT(patchlevel)
RUBY_PLATFORM = MKSTR(platform)
RUBY_RELEASE_DATE = MKSTR(release_date)
RUBY_VERSION = (version = MKSTR(version))
ARGF = argf
STDERR = rb_stderr
STDOUT = rb_stdout
STDIN = rb_stdin
ENV = envtbl
TOPLEVEL_BINDING = rb_binding_new()
Bignum = rb_cInteger
ARGV = rb_argv
DATA = f
Fixnum = rb_cInteger