D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Object
/
Filename :
cdesc-Object.ri
back
Copy
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;;[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"ENV;TI"Object::ENV;T:public0o;;[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@B@cRDoc::NormalClass0U;[i I" STDIN;TI"Object::STDIN;T;0o;;[o;;[I"Holds the original stdin;T@; I" io.c;T; 0@M@@C0U;[i I"STDOUT;TI"Object::STDOUT;T;0o;;[o;;[I"Holds the original stdout;T@; @M; 0@M@@C0U;[i I"STDERR;TI"Object::STDERR;T;0o;;[o;;[I"Holds the original stderr;T@; @M; 0@M@@C0U;[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; @M; 0@M@@C0U;[i I"Ripper;TI"Object::Ripper;T;0o;;[o;;[I"OThis writes the prism ripper translation into the Ripper constant so that ;TI"<users can transparently use Ripper without any changes.;T; I")lib/prism/translation/ripper/shim.rb;T; 0@w@@C0U;[i I" Readline;TI"Object::Readline;T;I"Reline;To;;[ ; I"lib/readline.rb;T; 0@@@C0U;[i I"CROSS_COMPILING;TI"Object::CROSS_COMPILING;T;0o;;[ ; I"rbconfig.rb;T; 0@�@@C0U;[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@�@@C0U;[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@�@@C0U;[i I"RUBY_VERSION;TI"Object::RUBY_VERSION;T;0o;;[o;;[I" The running version of ruby;T; I"version.c;T; 0@�@@C0U;[i I"RUBY_RELEASE_DATE;TI"Object::RUBY_RELEASE_DATE;T;0o;;[o;;[I"$The date this ruby was released;T; @�; 0@�@@C0U;[i I"RUBY_PLATFORM;TI"Object::RUBY_PLATFORM;T;0o;;[o;;[I"The platform for this ruby;T; @�; 0@�@@C0U;[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@�@@C0U;[i I"RUBY_REVISION;TI"Object::RUBY_REVISION;T;0o;;[o;;[I"'The GIT commit hash for this ruby.;T; @�; 0@�@@C0U;[i I"RUBY_COPYRIGHT;TI"Object::RUBY_COPYRIGHT;T;0o;;[o;;[I""The copyright string for ruby;T; @�; 0@�@@C0U;[i I"RUBY_ENGINE;TI"Object::RUBY_ENGINE;T;0o;;[o;;[I".The engine or interpreter this ruby uses.;T; @�; 0@�@@C0U;[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@�@@C0U;[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@�@@C0U;[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@@@C0[[I"Kernel;To;;[ ; @3; 0I" object.c;T[[I" class;T[[;[[I" yaml_tag;TI"$ext/psych/lib/psych/core_ext.rb;T[:protected[ [:private[ [I" instance;T[[;[.[I"!~;T@ [I"<=>;T@ [I"===;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@+[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@+[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@g[I" send;T@b[I"singleton_class;T@ [I"singleton_method;T@+[I"singleton_methods;T@ [I"to_enum;T@3[I" to_s;T@ [I"to_yaml;T@[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0; 0[@ I"enumerator.c;TI"eval.c;TI"ext/digest/lib/digest.rb;T@I" gc.c;T@B@MI"lib/English.rb;TI"lib/delegate.rb;TI"lib/optparse.rb;TI"lib/pp.rb;T@w@I"lib/reline.rb;TI"lib/un.rb;TI"lib/yaml.rb;T@3I"proc.c;T@�@�@�@I"vm_eval.c;TI"vm_method.c;T@�cRDoc::TopLevel