Object
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
Included modules
- Kernel
- MakeMakefile
- PP::ObjectMixin
Constants
ARGF = argf
ARGV = rb_argv
Bignum = rb_cInteger
DATA = f
DependencyConflict = Gem::Resolver::Conflict # :nodoc:
DependencyResolver = Gem::Resolver # :nodoc:
ENV = envtbl
FALSE = Qfalse
Fixnum = rb_cInteger
Math = CMath # :nodoc:
NIL = Qnil
NOENCODING = 32
OptParse = OptionParser # :nodoc:
ParseError = Racc::ParseError
RUBY_COPYRIGHT = MKSTR(copyright)
RUBY_DESCRIPTION = MKSTR(description)
RUBY_ENGINE = ruby_engine_name = MKSTR(engine)
RUBY_ENGINE_VERSION = (1 ? version : MKSTR(version))
RUBY_PATCHLEVEL = MKINT(patchlevel)
RUBY_PLATFORM = MKSTR(platform)
RUBY_RELEASE_DATE = MKSTR(release_date)
RUBY_REVISION = MKINT(revision)
RUBY_VERSION = (version = MKSTR(version))
SCRIPT_LINES__ = {} unless defined? SCRIPT_LINES__
STDERR = rb_stderr
STDIN = rb_stdin
STDOUT = rb_stdout
Synchronizer = Sync
Synchronizer_m = Sync_m
TOPLEVEL_BINDING = rb_binding_new()
TRUE = Qtrue
ThWait = ThreadsWait
TimeoutError = Timeout::Error
UnsatisfiableDepedencyError = Gem::UnsatisfiableDependencyError # :nodoc:
YAML = Psych # :nodoc:
Files
- bignum.c
- class.c
- enumerator.c
- eval.c
- ext/digest/lib/digest.rb
- ext/psych/lib/psych/core_ext.rb
- ext/psych/lib/psych/deprecated.rb
- ext/psych/lib/psych/visitors/to_ruby.rb
- gc.c
- hash.c
- io.c
- lib/English.rb
- lib/csv.rb
- lib/debug.rb
- lib/delegate.rb
- lib/irb/ext/use-loader.rb
- lib/irb/src_encoding.rb
- lib/irb/xmp.rb
- lib/mathn.rb
- lib/mkmf.rb
- lib/optparse.rb
- lib/pp.rb
- lib/racc/parser.rb
- lib/rexml/xpath_parser.rb
- lib/rubygems/exceptions.rb
- lib/rubygems/resolver.rb
- lib/rubygems/resolver/conflict.rb
- lib/sync.rb
- lib/thwait.rb
- lib/timeout.rb
- lib/un.rb
- lib/webrick/httpservlet/cgi_runner.rb
- lib/webrick/utils.rb
- lib/yaml.rb
- numeric.c
- object.c
- proc.c
- ruby.c
- version.c
- vm.c
- vm_eval.c
- vm_method.c