📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 09:24:54
📂
/ (Root)
/
opt
/
alt
/
ruby31
/
share
/
ri
/
system
/
Object
📍 /opt/alt/ruby31/share/ri/system/Object
🔄 Refresh
✏️
Editing: cdesc-Object.ri
Read Only
U:RDoc::NormalClass[iI"Object:ET@I"BasicObject;To:RDoc::Markup::Document:@parts[ o;;[ : @fileI"class.c;T:0@omit_headings_from_table_of_contents_below0o;;[ ; I"$ext/psych/lib/psych/core_ext.rb;T; 0o;;[ ; I"lib/irb/ext/use-loader.rb;T; 0o;;[ ; I"lib/racc/compat.rb;T; 0o;;[o:RDoc::Markup::Paragraph;[I"KObject is the default root of all Ruby objects. Object inherits from ;TI"NBasicObject which allows creating alternate object hierarchies. Methods ;TI"Ion Object are available to all classes unless explicitly overridden.;To:RDoc::Markup::BlankLine o;;[I"MObject mixes in the Kernel module, making the built-in kernel functions ;TI"Oglobally accessible. Although the instance methods of Object are defined ;TI"Lby the Kernel module, we have chosen to document them here for clarity.;T@o;;[I"MWhen referencing constants in classes inheriting from Object you do not ;TI"Mneed to use the full namespace. For example, referencing +File+ inside ;TI"4+YourClass+ will find the top-level File class.;T@o;;[I"QIn the descriptions of Object's methods, the parameter <i>symbol</i> refers ;TI"Gto a symbol, which is either a quoted string or a Symbol (such as ;TI"<code>:name</code>).;T@S:RDoc::Markup::Heading: leveli: textI"What's Here;T@o;;[I"-First, what's elsewhere. \Class \Object:;T@o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0;[o;;[I"_Inherits from {class BasicObject}[BasicObject.html#class-BasicObject-label-What-27s+Here].;To;;0;[o;;[I"MIncludes {module Kernel}[Kernel.html#module-Kernel-label-What-27s+Here].;T@o;;[I".Here, class \Object provides methods for:;T@o;;;;[o;;0;[o;;[I"-{Querying}[#class-Object-label-Querying];To;;0;[o;;[I"A{Instance Variables}[#class-Object-label-Instance+Variables];To;;0;[o;;[I"'{Other}[#class-Object-label-Other];T@S; ;i;I" Querying;T@o;;;;[o;;0;[o;;: NOTE;[o;;[I"{!~}[#method-i-21~];T;[o;;[I"?Returns +true+ if +self+ does not match the given object, ;TI"otherwise +false+.;To;;0;[o;;;;[o;;[I"{<=>}[#method-i-3C-3D-3E];T;[o;;[I"7Returns 0 if +self+ and the given object +object+ ;TI" are the same object, or if ;TI"6<tt>self == object</tt>; otherwise returns +nil+.;To;;0;[o;;;;[o;;[I" #===;T;[o;;[I"CImplements case equality, effectively the same as calling #==.;To;;0;[o;;;;[o;;[I" #eql?;T;[o;;[I"CImplements hash equality, effectively the same as calling #==.;To;;0;[o;;;;[o;;[I""#kind_of? (aliased as #is_a?);T;[o;;[I"3Returns whether given argument is an ancestor ;TI"&of the singleton class of +self+.;To;;0;[o;;;;[o;;[I"#instance_of?;T;[o;;[I">Returns whether +self+ is an instance of the given class.;To;;0;[o;;;;[o;;[I" #instance_variable_defined?;T;[o;;[I"1Returns whether the given instance variable ;TI"is defined in +self+.;To;;0;[o;;;;[o;;[I"#method;T;[o;;[I">Returns the Method object for the given method in +self+.;To;;0;[o;;;;[o;;[I" #methods;T;[o;;[I"FReturns an array of symbol names of public and protected methods ;TI"in +self+.;To;;0;[o;;;;[o;;[I" #nil?;T;[o;;[I"KReturns +false+. (Only +nil+ responds +true+ to method <tt>nil?</tt>.);To;;0;[o;;;;[o;;[I"#object_id;T;[o;;[I"?Returns an integer corresponding to +self+ that is unique ;TI"for the current process;To;;0;[o;;;;[o;;[I"#private_methods;T;[o;;[I"*Returns an array of the symbol names ;TI"&of the private methods in +self+.;To;;0;[o;;;;[o;;[I"#protected_methods;T;[o;;[I"*Returns an array of the symbol names ;TI"(of the protected methods in +self+.;To;;0;[o;;;;[o;;[I"#public_method;T;[o;;[I"EReturns the Method object for the given public method in +self+.;To;;0;[o;;;;[o;;[I"#public_methods;T;[o;;[I"*Returns an array of the symbol names ;TI"%of the public methods in +self+.;To;;0;[o;;;;[o;;[I"#respond_to?;T;[o;;[I"9Returns whether +self+ responds to the given method.;To;;0;[o;;;;[o;;[I"#singleton_class;T;[o;;[I"+Returns the singleton class of +self+.;To;;0;[o;;;;[o;;[I"#singleton_method;T;[o;;[I">Returns the Method object for the given singleton method ;TI"in +self+.;To;;0;[o;;;;[o;;[I"#singleton_methods;T;[o;;[I"*Returns an array of the symbol names ;TI"(of the singleton methods in +self+.;T@o;;0;[o;;;;[o;;[I"#define_singleton_method;T;[o;;[I"*Defines a singleton method in +self+ ;TI"8for the given symbol method-name and block or proc.;To;;0;[o;;;;[o;;[I"#extend;T;[o;;[I"AIncludes the given modules in the singleton class of +self+.;To;;0;[o;;;;[o;;[I"#public_send;T;[o;;[I"ECalls the given public method in +self+ with the given argument.;To;;0;[o;;;;[o;;[I" #send;T;[o;;[I">Calls the given method in +self+ with the given argument.;T@S; ;i;I"Instance Variables;T@o;;;;[ o;;0;[o;;;;[o;;[I"#instance_variable_get;T;[o;;[I"6Returns the value of the given instance variable ;TI"=in +self+, or +nil+ if the instance variable is not set.;To;;0;[o;;;;[o;;[I"#instance_variable_set;T;[o;;[I"=Sets the value of the given instance variable in +self+ ;TI"to the given object.;To;;0;[o;;;;[o;;[I"#instance_variables;T;[o;;[I"*Returns an array of the symbol names ;TI")of the instance variables in +self+.;To;;0;[o;;;;[o;;[I"#remove_instance_variable;T;[o;;[I"5Removes the named instance variable from +self+.;T@S; ;i;I" Other;T@o;;;;[o;;0;[o;;;;[o;;[I"#clone;T;[o;;[I"AReturns a shallow copy of +self+, including singleton class ;TI"and frozen state.;To;;0;[o;;;;[o;;[I"#define_singleton_method;T;[o;;[I"*Defines a singleton method in +self+ ;TI"8for the given symbol method-name and block or proc.;To;;0;[o;;;;[o;;[I" #display;T;[o;;[I"?Prints +self+ to the given \IO stream or <tt>$stdout</tt>.;To;;0;[o;;;;[o;;[I" #dup;T;[o;;[I"/Returns a shallow unfrozen copy of +self+.;To;;0;[o;;;;[o;;[I"$#enum_for (aliased as #to_enum);T;[o;;[I"&Returns an Enumerator for +self+ ;TI"'using the using the given method, ;TI"arguments, and block.;To;;0;[o;;;;[o;;[I"#extend;T;[o;;[I"AIncludes the given modules in the singleton class of +self+.;To;;0;[o;;;;[o;;[I"#freeze;T;[o;;[I".Prevents further modifications to +self+.;To;;0;[o;;;;[o;;[I" #hash;T;[o;;[I"/Returns the integer hash value for +self+.;To;;0;[o;;;;[o;;[I" #inspect;T;[o;;[I"?Returns a human-readable string representation of +self+.;To;;0;[o;;;;[o;;[I"#itself;T;[o;;[I"Returns +self+.;To;;0;[o;;;;[o;;[I"#public_send;T;[o;;[I"ECalls the given public method in +self+ with the given argument.;To;;0;[o;;;;[o;;[I" #send;T;[o;;[I">Calls the given method in +self+ with the given argument.;To;;0;[o;;;;[o;;[I" #to_s;T;[o;;[I"/Returns a string representation of +self+.;T; I" object.c;T; 0; 0; 0[ [U:RDoc::Constant[i I"Bignum;TI"Object::Bignum;T:public0o;;[o;;[I"#An obsolete class, use Integer;T@; I" bignum.c;T; 0@2@cRDoc::NormalClass0U;[i I"ENV;TI"Object::ENV;T;0o;;[o;;[I";ENV is a Hash-like accessor for environment variables.;T@o;;[I"*See ENV (the class) for more details.;T; I"hash.c;T; 0@@@@30U;[i I" STDIN;TI"Object::STDIN;T;0o;;[o;;[I"Holds the original stdin;T@; I" io.c;T; 0@J@@30U;[i I"STDOUT;TI"Object::STDOUT;T;0o;;[o;;[I"Holds the original stdout;T@; @J; 0@J@@30U;[i I"STDERR;TI"Object::STDERR;T;0o;;[o;;[I"Holds the original stderr;T@; @J; 0@J@@30U;[i I" ARGF;TI"Object::ARGF;T;0o;;[o;;[I"KARGF is a stream designed for use in scripts that process files given ;TI"6as command-line arguments or passed in via STDIN.;T@o;;[I"+See ARGF (the class) for more details.;T; @J; 0@J@@30U;[i I"ParseError;TI"Object::ParseError;T;I"Racc::ParseError;To;;[ ; I"lib/racc/parser.rb;T; 0@q@@30U;[i I" Readline;TI"Object::Readline;T;0o;;[ ; I"lib/readline.rb;T; 0@x@@30U;[i I"Fixnum;TI"Object::Fixnum;T;0o;;[o;;[I"#An obsolete class, use Integer;T@; I"numeric.c;T; 0@�@@30U;[i I"SCRIPT_LINES__;TI"Object::SCRIPT_LINES__;T;0o;;[o;;[I"NWhen a Hash is assigned to +SCRIPT_LINES__+ the contents of files loaded ;TI"Kafter the assignment will be added as an Array of lines with the file ;TI"name as the key.;T; I"parse.c;T; 0@�@@30U;[i I"CROSS_COMPILING;TI"Object::CROSS_COMPILING;T;0o;;[ ; I"rbconfig.rb;T; 0@�@@30U;[i I" DATA;TI"Object::DATA;T;0o;;[o;;[I"IDATA is a File that contains the data section of the executed file. ;TI"3To create a data section use <tt>__END__</tt>:;T@o:RDoc::Markup::Verbatim;[I"$ cat t.rb ;TI"puts DATA.gets ;TI" __END__ ;TI"hello world! ;TI" ;TI"$ ruby t.rb ;TI"hello world!;T:@format0; I"ruby.c;T; 0@�@@30U;[i I" ARGV;TI"Object::ARGV;T;0o;;[o;;[I"?ARGV contains the command line arguments used to run ruby.;T@o;;[I"EA library like OptionParser can be used to process command-line ;TI"arguments.;T; @�; 0@�@@30U;[i I"RUBY_VERSION;TI"Object::RUBY_VERSION;T;0o;;[o;;[I" The running version of ruby;T; I"version.c;T; 0@�@@30U;[i I"RUBY_RELEASE_DATE;TI"Object::RUBY_RELEASE_DATE;T;0o;;[o;;[I"$The date this ruby was released;T; @�; 0@�@@30U;[i I"RUBY_PLATFORM;TI"Object::RUBY_PLATFORM;T;0o;;[o;;[I"The platform for this ruby;T; @�; 0@�@@30U;[i I"RUBY_PATCHLEVEL;TI"Object::RUBY_PATCHLEVEL;T;0o;;[o;;[I"KThe patchlevel for this ruby. If this is a development build of ruby ;TI"the patchlevel will be -1;T; @�; 0@�@@30U;[i I"RUBY_REVISION;TI"Object::RUBY_REVISION;T;0o;;[o;;[I"'The GIT commit hash for this ruby.;T; @�; 0@�@@30U;[i I"RUBY_COPYRIGHT;TI"Object::RUBY_COPYRIGHT;T;0o;;[o;;[I""The copyright string for ruby;T; @�; 0@�@@30U;[i I"RUBY_ENGINE;TI"Object::RUBY_ENGINE;T;0o;;[o;;[I".The engine or interpreter this ruby uses.;T; @�; 0@�@@30U;[i I"RUBY_ENGINE_VERSION;TI" Object::RUBY_ENGINE_VERSION;T;0o;;[o;;[I"=The version of the engine or interpreter this ruby uses.;T; @�; 0@�@@30U;[i I"RUBY_DESCRIPTION;TI"Object::RUBY_DESCRIPTION;T;0o;;[o;;[I"?The full ruby version string, like <tt>ruby -v</tt> prints;T; @�; 0@�@@30U;[i I"TOPLEVEL_BINDING;TI"Object::TOPLEVEL_BINDING;T;0o;;[o;;[I"'The Binding of the top level scope;T; I" vm.c;T; 0@@@30[[I"Kernel;To;;[ ; @&; 0I" object.c;T[[I" class;T[[;[ [:protected[ [:private[[I" yaml_tag;TI"$ext/psych/lib/psych/core_ext.rb;T[I" instance;T[[;[ [;[ [;[7[I"!~;T@[I"<=>;T@[I"===;T@[I"=~;T@[I"CSV;TI"lib/csv.rb;T[I"DelegateClass;TI"lib/delegate.rb;T[I"Digest;TI"ext/digest/lib/digest.rb;T[I"define_singleton_method;TI"proc.c;T[I"display;TI" io.c;T[I"dup;T@[I" enum_for;TI"enumerator.c;T[I" eql?;T@[I"extend;TI"eval.c;T[I"freeze;T@[I" hash;T@[I"inspect;T@[I"instance_of?;T@[I"instance_variable_defined?;T@[I"instance_variable_get;T@[I"instance_variable_set;T@[I"instance_variables;T@[I" is_a?;T@[I"itself;T@[I" kind_of?;T@[I"method;T@C[I"methods;T@[I" nil?;T@[I"object_id;TI" gc.c;T[I"private_methods;T@[I"protected_methods;T@[I"public_method;T@C[I"public_methods;T@[I"public_send;TI"vm_eval.c;T[I"remove_instance_variable;T@[I"respond_to?;TI"vm_method.c;T[I"respond_to_missing?;T@[I" send;T@z[I"singleton_class;T@[I"singleton_method;T@C[I"singleton_methods;T@[I" taint;T@[I" tainted?;T@[I"to_enum;T@K[I" to_s;T@[I"to_yaml;T@&[I" trust;T@[I"untaint;T@[I"untrust;T@[I"untrusted?;T@[I"xmp;TI"lib/irb/xmp.rb;T[ [U:RDoc::Context::Section[i 0o;;[ ; 0; 0[&I" bignum.c;TI"class.c;TI"enumerator.c;TI"eval.c;TI"ext/digest/lib/digest.rb;TI"$ext/psych/lib/psych/core_ext.rb;TI" gc.c;TI"hash.c;TI" io.c;TI"lib/English.rb;TI"lib/csv.rb;TI"lib/delegate.rb;TI"lib/drb/drb.rb;TI"lib/irb/ext/use-loader.rb;TI"lib/irb/xmp.rb;TI"lib/optparse.rb;TI"lib/pp.rb;TI"lib/racc/compat.rb;TI"lib/racc/parser.rb;TI"lib/readline.rb;TI"lib/un.rb;TI"lib/yaml.rb;TI"numeric.c;TI" object.c;TI"parse.c;TI"parse.y;TI"proc.c;TI"rbconfig.rb;TI"ruby.c;TI"version.c;TI" vm.c;TI"vm_eval.c;TI"vm_method.c;T@&cRDoc::TopLevel
💾 Save Changes
❌ Cancel