PATH:
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Hash
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Returns the default value, the value that would be returned by <em>hsh</em>[<em>key</em>] if <em>key</em> did not exist in <em>hsh</em>. See also <tt>Hash::new</tt> and <tt>Hash#default=</tt>. - !ruby/struct:SM::Flow::VERB body: " h = Hash.new #=> {}\n h.default #=> nil\n h.default(2) #=> nil\n\n h = Hash.new("cat") #=> {}\n h.default #=> "cat"\n h.default(2) #=> "cat"\n\n h = Hash.new {|h,k| h[k] = k.to_i*10} #=> {}\n h.default #=> nil\n h.default(2) #=> 20\n" full_name: Hash#default is_singleton: false name: default params: | hsh.default(key=nil) => obj visibility: public
[-] 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]