📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 06:40:30
📂
/ (Root)
/
opt
/
alt
/
ruby33
/
share
/
ri
/
system
/
Object
📍 /opt/alt/ruby33/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;;[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"KInherits from {class BasicObject}[rdoc-ref:BasicObject@What-27s+Here].;To;;0;[o;;[I"=Includes {module Kernel}[rdoc-ref:Kernel@What-27s+Here].;T@o;;[I".Here, class \Object provides methods for:;T@o;;;;[o;;0;[o;;[I"){Querying}[rdoc-ref:Object@Querying];To;;0;[o;;[I"={Instance Variables}[rdoc-ref:Object@Instance+Variables];To;;0;[o;;[I"#{Other}[rdoc-ref:Object@Other];T@S; ;i;I" Querying;T@o;;;;[o;;0;[o;;[I"D#!~: Returns +true+ if +self+ does not match the given object, ;TI"otherwise +false+.;To;;0;[o;;[I"J#<=>: Returns 0 if +self+ and the given object +object+ are the same ;TI"Dobject, or if <tt>self == object</tt>; otherwise returns +nil+.;To;;0;[o;;[I"I#===: Implements case equality, effectively the same as calling #==.;To;;0;[o;;[I"J#eql?: Implements hash equality, effectively the same as calling #==.;To;;0;[o;;[I"R#kind_of? (aliased as #is_a?): Returns whether given argument is an ancestor ;TI"&of the singleton class of +self+.;To;;0;[o;;[I"M#instance_of?: Returns whether +self+ is an instance of the given class.;To;;0;[o;;[I"N#instance_variable_defined?: Returns whether the given instance variable ;TI"is defined in +self+.;To;;0;[o;;[I"G#method: Returns the Method object for the given method in +self+.;To;;0;[o;;[I"P#methods: Returns an array of symbol names of public and protected methods ;TI"in +self+.;To;;0;[o;;[I"R#nil?: Returns +false+. (Only +nil+ responds +true+ to method <tt>nil?</tt>.);To;;0;[o;;[I"K#object_id: Returns an integer corresponding to +self+ that is unique ;TI"for the current process;To;;0;[o;;[I"<#private_methods: Returns an array of the symbol names ;TI"&of the private methods in +self+.;To;;0;[o;;[I">#protected_methods: Returns an array of the symbol names ;TI"(of the protected methods in +self+.;To;;0;[o;;[I"U#public_method: Returns the Method object for the given public method in +self+.;To;;0;[o;;[I";#public_methods: Returns an array of the symbol names ;TI"%of the public methods in +self+.;To;;0;[o;;[I"G#respond_to?: Returns whether +self+ responds to the given method.;To;;0;[o;;[I"=#singleton_class: Returns the singleton class of +self+.;To;;0;[o;;[I"Q#singleton_method: Returns the Method object for the given singleton method ;TI"in +self+.;To;;0;[o;;[I">#singleton_methods: Returns an array of the symbol names ;TI"(of the singleton methods in +self+.;T@o;;0;[o;;[I"D#define_singleton_method: Defines a singleton method in +self+ ;TI"8for the given symbol method-name and block or proc.;To;;0;[o;;[I"J#extend: Includes the given modules in the singleton class of +self+.;To;;0;[o;;[I"S#public_send: Calls the given public method in +self+ with the given argument.;To;;0;[o;;[I"E#send: Calls the given method in +self+ with the given argument.;T@S; ;i;I"Instance Variables;T@o;;;;[ o;;0;[o;;[I"N#instance_variable_get: Returns the value of the given instance variable ;TI"=in +self+, or +nil+ if the instance variable is not set.;To;;0;[o;;[I"U#instance_variable_set: Sets the value of the given instance variable in +self+ ;TI"to the given object.;To;;0;[o;;[I"?#instance_variables: Returns an array of the symbol names ;TI")of the instance variables in +self+.;To;;0;[o;;[I"P#remove_instance_variable: Removes the named instance variable from +self+.;T@S; ;i;I" Other;T@o;;;;[o;;0;[o;;[I"J#clone: Returns a shallow copy of +self+, including singleton class ;TI"and frozen state.;To;;0;[o;;[I"D#define_singleton_method: Defines a singleton method in +self+ ;TI"8for the given symbol method-name and block or proc.;To;;0;[o;;[I"H#display: Prints +self+ to the given IO stream or <tt>$stdout</tt>.;To;;0;[o;;[I"5#dup: Returns a shallow unfrozen copy of +self+.;To;;0;[o;;[I"G#enum_for (aliased as #to_enum): Returns an Enumerator for +self+ ;TI"<using the using the given method, arguments, and block.;To;;0;[o;;[I"J#extend: Includes the given modules in the singleton class of +self+.;To;;0;[o;;[I"7#freeze: Prevents further modifications to +self+.;To;;0;[o;;[I"6#hash: Returns the integer hash value for +self+.;To;;0;[o;;[I"I#inspect: Returns a human-readable string representation of +self+.;To;;0;[o;;[I"#itself: Returns +self+.;To;;0;[o;;[I"Q#method_missing: Method called when an undefined method is called on +self+.;To;;0;[o;;[I"S#public_send: Calls the given public method in +self+ with the given argument.;To;;0;[o;;[I"E#send: Calls the given method in +self+ with the given argument.;To;;0;[o;;[I"6#to_s: Returns a string representation of +self+.;T; I" object.c;T; 0; 0; 0[ [!U:RDoc::Constant[i I"WIN32OLE_EVENT;TI"Object::WIN32OLE_EVENT;T:public0o;;[ ; I""ext/win32ole/win32ole_event.c;T; 0@?@cRDoc::NormalClass0U;[i I"WIN32OLE_METHOD;TI"Object::WIN32OLE_METHOD;T;0o;;[ ; I"#ext/win32ole/win32ole_method.c;T; 0@G@@@0U;[i I"WIN32OLE_PARAM;TI"Object::WIN32OLE_PARAM;T;0o;;[ ; I""ext/win32ole/win32ole_param.c;T; 0@N@@@0U;[i I"WIN32OLE_RECORD;TI"Object::WIN32OLE_RECORD;T;0o;;[ ; I"#ext/win32ole/win32ole_record.c;T; 0@U@@@0U;[i I"WIN32OLE_TYPE;TI"Object::WIN32OLE_TYPE;T;0o;;[ ; I"!ext/win32ole/win32ole_type.c;T; 0@\@@@0U;[i I"WIN32OLE_TYPELIB;TI"Object::WIN32OLE_TYPELIB;T;0o;;[ ; I"$ext/win32ole/win32ole_typelib.c;T; 0@c@@@0U;[i I"WIN32OLE_VARIABLE;TI"Object::WIN32OLE_VARIABLE;T;0o;;[ ; I"%ext/win32ole/win32ole_variable.c;T; 0@j@@@0U;[i I"WIN32OLE_VARIANT;TI"Object::WIN32OLE_VARIANT;T;0o;;[ ; I"$ext/win32ole/win32ole_variant.c;T; 0@q@@@0U;[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@~@@@0U;[i I" STDIN;TI"Object::STDIN;T;0o;;[o;;[I"Holds the original stdin;T@; I" io.c;T; 0@�@@@0U;[i I"STDOUT;TI"Object::STDOUT;T;0o;;[o;;[I"Holds the original stdout;T@; @�; 0@�@@@0U;[i I"STDERR;TI"Object::STDERR;T;0o;;[o;;[I"Holds the original stderr;T@; @�; 0@�@@@0U;[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; @�; 0@�@@@0U;[i I"RubyLex;TI"Object::RubyLex;T;I"IRB::RubyLex;To;;[ ; I"lib/irb/ruby-lex.rb;T; 0@�@@@0U;[i I" Readline;TI"Object::Readline;T;I"Reline;To;;[ ; I"lib/readline.rb;T; 0@�@@@0U;[i I"CROSS_COMPILING;TI"Object::CROSS_COMPILING;T;0o;;[ ; I"rbconfig.rb;T; 0@�@@@0U;[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@�@@@0U;[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@�@@@0U;[i I"RUBY_VERSION;TI"Object::RUBY_VERSION;T;0o;;[o;;[I" The running version of ruby;T; I"version.c;T; 0@�@@@0U;[i I"RUBY_RELEASE_DATE;TI"Object::RUBY_RELEASE_DATE;T;0o;;[o;;[I"$The date this ruby was released;T; @�; 0@�@@@0U;[i I"RUBY_PLATFORM;TI"Object::RUBY_PLATFORM;T;0o;;[o;;[I"The platform for this ruby;T; @�; 0@�@@@0U;[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@�@@@0U;[i I"RUBY_REVISION;TI"Object::RUBY_REVISION;T;0o;;[o;;[I"'The GIT commit hash for this ruby.;T; @�; 0@�@@@0U;[i I"RUBY_COPYRIGHT;TI"Object::RUBY_COPYRIGHT;T;0o;;[o;;[I""The copyright string for ruby;T; @�; 0@�@@@0U;[i I"RUBY_ENGINE;TI"Object::RUBY_ENGINE;T;0o;;[o;;[I".The engine or interpreter this ruby uses.;T; @�; 0@�@@@0U;[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@�@@@0U;[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@�@@@0U;[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@<@@@0[[I"Kernel;To;;[ ; @6; 0I" object.c;T[[I" class;T[[;[ [:protected[ [:private[[I" yaml_tag;TI"$ext/psych/lib/psych/core_ext.rb;T[I" instance;T[[;[ [;[ [;[0[I"!~;T@B[I"<=>;T@B[I"===;T@B[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@B[I" enum_for;TI"enumerator.c;T[I" eql?;T@B[I"extend;TI"eval.c;T[I"freeze;T@B[I" hash;T@B[I"inspect;T@B[I"instance_of?;T@B[I"instance_variable_defined?;T@B[I"instance_variable_get;T@B[I"instance_variable_set;T@B[I"instance_variables;T@B[I" is_a?;T@B[I"itself;T@B[I" kind_of?;T@B[I"method;T@j[I"methods;T@B[I" nil?;T@B[I"object_id;TI" gc.c;T[I"private_methods;T@B[I"protected_methods;T@B[I"public_method;T@j[I"public_methods;T@B[I"public_send;TI"vm_eval.c;T[I"remove_instance_variable;T@B[I"respond_to?;TI"vm_method.c;T[I"respond_to_missing?;T@�[I" send;T@�[I"singleton_class;T@B[I"singleton_method;T@j[I"singleton_methods;T@B[I"to_enum;T@r[I" to_s;T@B[I"to_yaml;T@O[I"xmp;TI"lib/irb/xmp.rb;T[ [U:RDoc::Context::Section[i 0o;;[ ; 0; 0[*I"class.c;TI"enumerator.c;TI"eval.c;TI"ext/digest/lib/digest.rb;TI"$ext/psych/lib/psych/core_ext.rb;TI""ext/win32ole/win32ole_event.c;TI"#ext/win32ole/win32ole_method.c;TI""ext/win32ole/win32ole_param.c;TI"#ext/win32ole/win32ole_record.c;TI"!ext/win32ole/win32ole_type.c;TI"$ext/win32ole/win32ole_typelib.c;TI"%ext/win32ole/win32ole_variable.c;TI"$ext/win32ole/win32ole_variant.c;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/ruby-lex.rb;TI"lib/irb/xmp.rb;TI"lib/optparse.rb;TI"lib/pp.rb;TI"lib/readline.rb;TI"lib/reline.rb;TI"lib/un.rb;TI"lib/yaml.rb;TI" object.c;TI"proc.c;TI"rbconfig.rb;TI"ruby.c;TI"version.c;TI" vm.c;TI"vm_eval.c;TI"vm_method.c;T@6cRDoc::TopLevel
💾 Save Changes
❌ Cancel