Object is the root of Ruby’s class hierarchy. Its methods 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.
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).
Constants
ENV = envtbl
NIL = Qnil
TRUE = Qtrue
FALSE = Qfalse
DATA = f
ARGV = rb_argv
RUBY_VERSION = MKSTR(version)
RUBY_RELEASE_DATE = MKSTR(release_date)
RUBY_PLATFORM = MKSTR(platform)
RUBY_PATCHLEVEL = INT2FIX(RUBY_PATCHLEVEL)
RUBY_REVISION = INT2FIX(RUBY_REVISION)
RUBY_DESCRIPTION = MKSTR(description)
RUBY_COPYRIGHT = MKSTR(copyright)
RUBY_ENGINE = ruby_engine_name = MKSTR(engine)
TOPLEVEL_BINDING = rb_binding_new()
STDIN = rb_stdin
STDOUT = rb_stdout
STDERR = rb_stderr
ARGF = argf
Synchronizer_m = Sync_m
Synchronizer = Sync
Version = OptionParser::Version
CONFIG = RbConfig::MAKEFILE_CONFIG
ORIG_LIBPATH = ENV['LIB']
C_EXT = %w[c m]
CXX_EXT = %w[cc mm cxx cpp]
SRC_EXT = C_EXT + CXX_EXT
STRING_OR_FAILED_FORMAT = "%s"
EXPORT_PREFIX = config_string('EXPORT_PREFIX') {|s| s.strip}
COMMON_HEADERS = hdr.join("\n")
COMMON_LIBS = config_string('COMMON_LIBS', &split) || []
COMPILE_RULES = config_string('COMPILE_RULES', &split) || %w[.%s.%s:]
RULE_SUBST = config_string('RULE_SUBST')
COMPILE_C = config_string('COMPILE_C') || '$(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<'
COMPILE_CXX = config_string('COMPILE_CXX') || '$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<'
TRY_LINK = config_string('TRY_LINK') || "$(CC) #{OUTFLAG}conftest $(INCFLAGS) $(CPPFLAGS) " \ "$(CFLAGS) $(src) $(LIBPATH) $(LDFLAGS) $(ARCH_FLAG) $(LOCAL_LIBS) $(LIBS)"
LINK_SO = config_string('LINK_SO') || if CONFIG["DLEXT"] == $OBJEXT "ld $(DLDFLAGS) -r -o $@ $(OBJS)\n" else "$(LDSHARED) #{OUTFLAG}$@ $(OBJS) " \ "$(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)" end
LIBPATHFLAG = config_string('LIBPATHFLAG') || ' -L"%s"'
RPATHFLAG = config_string('RPATHFLAG') || ''
LIBARG = config_string('LIBARG') || '-l%s'
MAIN_DOES_NOTHING = config_string('MAIN_DOES_NOTHING') || 'int main() {return 0;}'
UNIVERSAL_INTS = config_string('UNIVERSAL_INTS') {|s| Shellwords.shellwords(s)} || %w[int short long long\ long]
CLEANINGS = " clean-rb-default:: clean-rb:: clean-so:: clean: clean-so clean-rb-default clean-rb \t\t@-$(RM) $(CLEANLIBS#{sep}) $(CLEANOBJS#{sep}) $(CLEANFILES#{sep}) distclean-rb-default:: distclean-rb:: distclean-so:: distclean: clean distclean-so distclean-rb-default distclean-rb \t\t@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log \t\t@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES#{sep}) \t\t@-$(RMDIRS) $(DISTCLEANDIRS#{sep})#{$ignore_error} realclean: distclean "
ThWait = ThreadsWait
Math = CMath # :nodoc:
SCRIPT_LINES__ = {} unless defined? SCRIPT_LINES__
NotImplementedError = NotImplementError
ParseError = Racc::ParseError
TimeoutError = Timeout::Error
NOENCODING = 32