PATH:
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Hash
--- !ruby/object:RI::ClassDescription attributes: [] class_methods: - !ruby/object:RI::MethodSummary name: "[]" - !ruby/object:RI::MethodSummary name: new comment: - !ruby/struct:SM::Flow::P body: A <tt>Hash</tt> is a collection of key-value pairs. It is similar to an <tt>Array</tt>, except that indexing is done via arbitrary keys of any object type, not an integer index. The order in which you traverse a hash by either key or value may seem arbitrary, and will generally not be in the insertion order. - !ruby/struct:SM::Flow::P body: Hashes have a <em>default value</em> that is returned when accessing keys that do not exist in the hash. By default, that value is <tt>nil</tt>. - !ruby/struct:SM::Flow::P body: <tt>Hash</tt> uses <tt>key.eql?</tt> to test keys for equality. If you need to use instances of your own classes as keys in a <tt>Hash</tt>, it is recommended that you define both the <tt>eql?</tt> and <tt>hash</tt> methods. The <tt>hash</tt> method must have the property that <tt>a.eql?(b)</tt> implies <tt>a.hash == b.hash</tt>. - !ruby/struct:SM::Flow::VERB body: " class MyClass\n attr_reader :str\n def initialize(str)\n @str = str\n end\n def eql?(o)\n o.is_a?(MyClass) && str == o.str\n end\n def hash\n @str.hash\n end\n end\n\n a = MyClass.new("some string")\n b = MyClass.new("some string")\n a.eql? b #=> true\n\n h = {}\n\n h[a] = 1\n h[a] #=> 1\n h[b] #=> 1\n\n h[b] = 2\n h[a] #=> 2\n h[b] #=> 2\n" constants: [] full_name: Hash includes: - !ruby/object:RI::IncludedModule name: Enumerable instance_methods: - !ruby/object:RI::MethodSummary name: == - !ruby/object:RI::MethodSummary name: "[]" - !ruby/object:RI::MethodSummary name: "[]=" - !ruby/object:RI::MethodSummary name: clear - !ruby/object:RI::MethodSummary name: default - !ruby/object:RI::MethodSummary name: default= - !ruby/object:RI::MethodSummary name: default_proc - !ruby/object:RI::MethodSummary name: delete - !ruby/object:RI::MethodSummary name: delete_if - !ruby/object:RI::MethodSummary name: each - !ruby/object:RI::MethodSummary name: each_key - !ruby/object:RI::MethodSummary name: each_pair - !ruby/object:RI::MethodSummary name: each_value - !ruby/object:RI::MethodSummary name: empty? - !ruby/object:RI::MethodSummary name: eql? - !ruby/object:RI::MethodSummary name: fetch - !ruby/object:RI::MethodSummary name: has_key? - !ruby/object:RI::MethodSummary name: has_value? - !ruby/object:RI::MethodSummary name: hash - !ruby/object:RI::MethodSummary name: include? - !ruby/object:RI::MethodSummary name: index - !ruby/object:RI::MethodSummary name: indexes - !ruby/object:RI::MethodSummary name: indices - !ruby/object:RI::MethodSummary name: initialize_copy - !ruby/object:RI::MethodSummary name: inspect - !ruby/object:RI::MethodSummary name: invert - !ruby/object:RI::MethodSummary name: key? - !ruby/object:RI::MethodSummary name: keys - !ruby/object:RI::MethodSummary name: length - !ruby/object:RI::MethodSummary name: member? - !ruby/object:RI::MethodSummary name: merge - !ruby/object:RI::MethodSummary name: merge! - !ruby/object:RI::MethodSummary name: pretty_print - !ruby/object:RI::MethodSummary name: pretty_print_cycle - !ruby/object:RI::MethodSummary name: rehash - !ruby/object:RI::MethodSummary name: reject - !ruby/object:RI::MethodSummary name: reject! - !ruby/object:RI::MethodSummary name: replace - !ruby/object:RI::MethodSummary name: select - !ruby/object:RI::MethodSummary name: shift - !ruby/object:RI::MethodSummary name: size - !ruby/object:RI::MethodSummary name: sort - !ruby/object:RI::MethodSummary name: store - !ruby/object:RI::MethodSummary name: to_a - !ruby/object:RI::MethodSummary name: to_hash - !ruby/object:RI::MethodSummary name: to_s - !ruby/object:RI::MethodSummary name: to_yaml - !ruby/object:RI::MethodSummary name: update - !ruby/object:RI::MethodSummary name: value? - !ruby/object:RI::MethodSummary name: values - !ruby/object:RI::MethodSummary name: values_at - !ruby/object:RI::MethodSummary name: yaml_initialize name: Hash superclass: Object
[-] reject-i.yaml
[edit]
[-] size-i.yaml
[edit]
[-] pretty_print_cycle-i.yaml
[edit]
[-] fetch-i.yaml
[edit]
[-] indices-i.yaml
[edit]
[-] rehash-i.yaml
[edit]
[-] empty%3f-i.yaml
[edit]
[-] to_yaml-i.yaml
[edit]
[-] values_at-i.yaml
[edit]
[-] hash-i.yaml
[edit]
[-] invert-i.yaml
[edit]
[-] pretty_print-i.yaml
[edit]
[-] yaml_initialize-i.yaml
[edit]
[-] %5b%5d%3d-i.yaml
[edit]
[-] key%3f-i.yaml
[edit]
[-] index-i.yaml
[edit]
[-] values-i.yaml
[edit]
[-] default-i.yaml
[edit]
[-] include%3f-i.yaml
[edit]
[-] each_key-i.yaml
[edit]
[-] merge-i.yaml
[edit]
[-] initialize_copy-i.yaml
[edit]
[-] each_pair-i.yaml
[edit]
[-] member%3f-i.yaml
[edit]
[-] inspect-i.yaml
[edit]
[-] delete-i.yaml
[edit]
[-] update-i.yaml
[edit]
[-] cdesc-Hash.yaml
[edit]
[-] clear-i.yaml
[edit]
[-] reject%21-i.yaml
[edit]
[-] store-i.yaml
[edit]
[-] keys-i.yaml
[edit]
[-] %3d%3d-i.yaml
[edit]
[-] to_hash-i.yaml
[edit]
[-] %5b%5d-c.yaml
[edit]
[-] %5b%5d-i.yaml
[edit]
[-] to_a-i.yaml
[edit]
[-] eql%3f-i.yaml
[edit]
[-] default%3d-i.yaml
[edit]
[-] length-i.yaml
[edit]
[+]
..
[-] merge%21-i.yaml
[edit]
[-] has_key%3f-i.yaml
[edit]
[-] each_value-i.yaml
[edit]
[-] delete_if-i.yaml
[edit]
[-] select-i.yaml
[edit]
[-] default_proc-i.yaml
[edit]
[-] each-i.yaml
[edit]
[-] indexes-i.yaml
[edit]
[-] sort-i.yaml
[edit]
[-] new-c.yaml
[edit]
[-] has_value%3f-i.yaml
[edit]
[-] shift-i.yaml
[edit]
[-] value%3f-i.yaml
[edit]
[-] to_s-i.yaml
[edit]
[-] replace-i.yaml
[edit]