File: C:/Ruby27-x64/share/ri/2.7.0/system/Hash/default-i.ri
U:RDoc::AnyMethod[iI"default:ETI"Hash#default;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"DReturns the default value, the value that would be returned by ;TI"G<i>hsh</i>[<i>key</i>] if <i>key</i> did not exist in <i>hsh</i>. ;TI"*See also Hash::new and Hash#default=.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"4h = Hash.new #=> {}
;TI"5h.default #=> nil
;TI"5h.default(2) #=> nil
;TI"
;TI"4h = Hash.new("cat") #=> {}
;TI"7h.default #=> "cat"
;TI"7h.default(2) #=> "cat"
;TI"
;TI"4h = Hash.new {|h,k| h[k] = k.to_i*10} #=> {}
;TI"5h.default #=> nil
;TI"3h.default(2) #=> 20;T:@format0:
@fileI"hash.c;T:0@omit_headings_from_table_of_contents_below0I"#hsh.default(key=nil) -> obj
;T0[ I"(*args);T@FI" Hash;TcRDoc::NormalClass00