PATH:
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Object
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Equality---At the <tt>Object</tt> level, <tt>==</tt> returns <tt>true</tt> only if <em>obj</em> and <em>other</em> are the same object. Typically, this method is overridden in descendent classes to provide class-specific meaning. - !ruby/struct:SM::Flow::P body: "Unlike <tt>==</tt>, the <tt>equal?</tt> method should never be overridden by subclasses: it is used to determine object identity (that is, <tt>a.equal?(b)</tt> iff <tt>a</tt> is the same object as <tt>b</tt>)." - !ruby/struct:SM::Flow::P body: "The <tt>eql?</tt> method returns <tt>true</tt> if <em>obj</em> and <em>anObject</em> have the same value. Used by <tt>Hash</tt> to test members for equality. For objects of class <tt>Object</tt>, <tt>eql?</tt> is synonymous with <tt>==</tt>. Subclasses normally continue this tradition, but there are exceptions. <tt>Numeric</tt> types, for example, perform type conversion across <tt>==</tt>, but not across <tt>eql?</tt>, so:" - !ruby/struct:SM::Flow::VERB body: " 1 == 1.0 #=> true\n 1.eql? 1.0 #=> false\n" full_name: Object#== is_singleton: false name: == params: | obj == other => true or false obj.equal?(other) => true or false obj.eql?(other) => true or false visibility: public
[-] class-i.yaml
[edit]
[-] frozen%3f-i.yaml
[edit]
[-] send-i.yaml
[edit]
[-] remove_instance_variable-i.yaml
[edit]
[-] instance_variable_set-i.yaml
[edit]
[-] private_methods-i.yaml
[edit]
[-] singleton_method_undefined-i.yaml
[edit]
[-] object_id-i.yaml
[edit]
[-] singleton_method_added-i.yaml
[edit]
[-] to_yaml_properties-i.yaml
[edit]
[-] display-i.yaml
[edit]
[-] method-i.yaml
[edit]
[-] to_yaml-i.yaml
[edit]
[-] hash-i.yaml
[edit]
[-] instance_variable_defined%3f-i.yaml
[edit]
[-] __id__-i.yaml
[edit]
[-] instance_exec-i.yaml
[edit]
[-] %3d%3d%3d-i.yaml
[edit]
[-] respond_to%3f-i.yaml
[edit]
[-] dup-i.yaml
[edit]
[-] equal%3f-i.yaml
[edit]
[-] tainted%3f-i.yaml
[edit]
[-] tap-i.yaml
[edit]
[-] inspect-i.yaml
[edit]
[-] %3d%7e-i.yaml
[edit]
[-] instance_variables-i.yaml
[edit]
[-] clone-i.yaml
[edit]
[-] enum_for-i.yaml
[edit]
[-] dclone-i.yaml
[edit]
[-] __send__-i.yaml
[edit]
[-] kind_of%3f-i.yaml
[edit]
[-] instance_eval-i.yaml
[edit]
[-] taint-i.yaml
[edit]
[-] instance_variable_get-i.yaml
[edit]
[-] %3d%3d-i.yaml
[edit]
[-] to_a-i.yaml
[edit]
[-] methods-i.yaml
[edit]
[-] id-i.yaml
[edit]
[-] singleton_method_removed-i.yaml
[edit]
[-] protected_methods-i.yaml
[edit]
[-] eql%3f-i.yaml
[edit]
[+]
..
[-] to_yaml_style-i.yaml
[edit]
[-] nil%3f-i.yaml
[edit]
[-] public_methods-i.yaml
[edit]
[-] new-c.yaml
[edit]
[-] is_a%3f-i.yaml
[edit]
[-] instance_of%3f-i.yaml
[edit]
[-] type-i.yaml
[edit]
[-] freeze-i.yaml
[edit]
[-] to_s-i.yaml
[edit]
[-] cdesc-Object.yaml
[edit]
[-] to_enum-i.yaml
[edit]
[-] extend-i.yaml
[edit]
[-] singleton_methods-i.yaml
[edit]
[-] untaint-i.yaml
[edit]