Flowdock

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

NOENCODING = 32

TimeoutError = Timeout::Error

NotImplementedError = NotImplementError

SCRIPT_LINES__ = {} unless defined? SCRIPT_LINES__

Math = CMath # :nodoc:

ThWait = ThreadsWait

CLEANINGS = " clean-static:: clean-rb-default:: clean-rb:: clean-so:: clean: clean-so clean-static clean-rb-default clean-rb \t\t-$(Q)$(RM) $(CLEANLIBS#{sep}) $(CLEANOBJS#{sep}) $(CLEANFILES#{sep}) .*.time 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 "

UNIVERSAL_INTS = config_string('UNIVERSAL_INTS') {|s| Shellwords.shellwords(s)} || %w[int short long long\ long]

MAIN_DOES_NOTHING = config_string('MAIN_DOES_NOTHING') || 'int main() {return 0;}'

LIBARG = config_string('LIBARG') || '-l%s'

RPATHFLAG = config_string('RPATHFLAG') || ''

LIBPATHFLAG = config_string('LIBPATHFLAG') || ' -L"%s"'

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

TRY_LINK = config_string('TRY_LINK') || "$(CC) #{OUTFLAG}conftest $(INCFLAGS) $(CPPFLAGS) " \ "$(CFLAGS) $(src) $(LIBPATH) $(LDFLAGS) $(ARCH_FLAG) $(LOCAL_LIBS) $(LIBS)"

COMPILE_CXX = config_string('COMPILE_CXX') || '$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<'

COMPILE_C = config_string('COMPILE_C') || '$(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<'

RULE_SUBST = config_string('RULE_SUBST')

COMPILE_RULES = config_string('COMPILE_RULES', &split) || %w[.%s.%s:]

COMMON_LIBS = config_string('COMMON_LIBS', &split) || []

COMMON_HEADERS = hdr.join("\n")

EXPORT_PREFIX = config_string('EXPORT_PREFIX') {|s| s.strip}

STRING_OR_FAILED_FORMAT = "%s"

SRC_EXT = C_EXT + CXX_EXT

CXX_EXT = %w[cc mm cxx cpp]

C_EXT = %w[c m]

ORIG_LIBPATH = ENV['LIB']

CONFIG = RbConfig::MAKEFILE_CONFIG

Version = OptionParser::Version

Synchronizer = Sync

ParseError = Racc::ParseError

Synchronizer_m = Sync_m

ARGF = argf

STDERR = rb_stderr

STDOUT = rb_stdout

STDIN = rb_stdin

TOPLEVEL_BINDING = rb_binding_new()

RUBY_ENGINE = ruby_engine_name = MKSTR(engine)

RUBY_COPYRIGHT = MKSTR(copyright)

RUBY_DESCRIPTION = MKSTR(description)

RUBY_REVISION = INT2FIX(RUBY_REVISION)

RUBY_PATCHLEVEL = INT2FIX(RUBY_PATCHLEVEL)

RUBY_PLATFORM = MKSTR(platform)

RUBY_RELEASE_DATE = MKSTR(release_date)

RUBY_VERSION = MKSTR(version)

ARGV = rb_argv

DATA = f

FALSE = Qfalse

TRUE = Qtrue

NIL = Qnil

ENV = envtbl

Attributes

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