class

Object

v1_8_7_330 - Show latest stable

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

Included modules

  • Kernel
  • PP::ObjectMixin

Constants

ARGF = argf

ARGV = rb_argv

DATA = f

ENV = envtbl

ENV = envtbl

FALSE = Qfalse

IPsocket = rb_cIPSocket

MatchingData = rb_cMatch

NIL = Qnil

PLATFORM = p

RELEASE_DATE = d

RUBY_COPYRIGHT = tmp

RUBY_DESCRIPTION = tmp

RUBY_PATCHLEVEL = INT2FIX(RUBY_PATCHLEVEL)

RUBY_PLATFORM = p

RUBY_RELEASE_DATE = d

RUBY_VERSION = v

SOCKSsocket = rb_cSOCKSSocket

STDERR = rb_stderr

STDIN = rb_stdin

STDOUT = rb_stdout

TCPserver = rb_cTCPServer

TCPsocket = rb_cTCPSocket

TOPLEVEL_BINDING = rb_f_binding(ruby_top_self)

TRUE = Qtrue

UDPsocket = rb_cUDPSocket

UNIXserver = rb_cUNIXServer

UNIXsocket = rb_cUNIXSocket

VERSION = v

Files

  • lib/irb/ext/use-loader.rb
  • lib/pp.rb
  • lib/rexml/xpath_parser.rb
  • lib/soap/soap.rb
  • lib/yaml/rubytypes.rb
  • object.c