Object is the parent class of all classes in Ruby. Its methods are therefore available to all objects 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.

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).

Aliases

  • load
  • require

Constants

TOPLEVEL_BINDING = rb_f_binding(ruby_top_self)

ENV = envtbl

ENV = envtbl

STDIN = rb_stdin

STDOUT = rb_stdout

STDERR = rb_stderr

ARGF = argf

NIL = Qnil

TRUE = Qtrue

FALSE = Qfalse

MatchingData = rb_cMatch

DATA = f

ARGV = rb_argv

RUBY_VERSION = v

RUBY_RELEASE_DATE = d

RUBY_PLATFORM = p

RUBY_PATCHLEVEL = INT2FIX(RUBY_PATCHLEVEL)

VERSION = v

RELEASE_DATE = d

PLATFORM = p

IPsocket = rb_cIPSocket

TCPsocket = rb_cTCPSocket

SOCKSsocket = rb_cSOCKSSocket

TCPserver = rb_cTCPServer

UDPsocket = rb_cUDPSocket

UNIXsocket = rb_cUNIXSocket

UNIXserver = rb_cUNIXServer

Attributes

Show files where this class is defined (6 files)
Register or log in to add new notes.