BasicObject is the parent class of all classes in Ruby. It’s an explicit blank class. Object, the root of Ruby’s class hierarchy is a direct subclass of BasicObject. 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).

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 = MKSTR(engine)

TOPLEVEL_BINDING = rb_binding_new()

STDIN = rb_stdin

STDOUT = rb_stdout

STDERR = rb_stderr

ARGF = argf

Math = CMath

SCRIPT_LINES__ = {} unless defined? SCRIPT_LINES__

DRbObject = DRb::DRbObject

DRbUndumped = DRb::DRbUndumped

DRbIdConv = DRb::DRbIdConv

Revision = '$Date:: $'

CONFIG = RbConfig::MAKEFILE_CONFIG

ORIG_LIBPATH = ENV['LIB']

CXX_EXT = %w[cc cxx cpp]

SRC_EXT = %w[c m] << CXX_EXT

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;}'

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}) realclean: distclean "

Version = OptionParser::Version

NotImplementedError = NotImplementError

ParseError = Racc::ParseError

CAN_USE_READLINE = true

Synchronizer_m = Sync_m

Synchronizer = Sync

ThWait = ThreadsWait

TimeoutError = Timeout::Error

ChartTypeVal = -4100;

SRCFILES = <

Attributes

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