File: //usr/share/ri/3.0.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"4Returns the default value for the given +key+. ;TI"_The returned value will be determined either by the default proc or by the default value. ;TI"<See {Default Values}[#class-Hash-label-Default+Values].;To:RDoc::Markup::BlankLine o;
; [I"9With no argument, returns the current default value:;To:RDoc::Markup::Verbatim; [I"h = {}
;TI"h.default # => nil
;T:@format0o;
; [I"=If +key+ is given, returns the default value for +key+, ;TI"+regardless of whether that key exists:;To;; [I"=h = Hash.new { |hash, key| hash[key] = "No key #{key}"}
;TI"h[:foo] = "Hello"
;TI"&h.default(:foo) # => "No key foo";T;
0:
@fileI"hash.c;T:0@omit_headings_from_table_of_contents_below0I"8hash.default -> object
hash.default(key) -> object
;T0[ I"(*args);T@!FI" Hash;TcRDoc::NormalClass00