JezK
Edit File: cdesc-QueryHash.ri
U:RDoc::NormalClass[iI"QueryHash:EFI"Hashery::QueryHash;FI"Hashery::CRUDHash;Fo:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"SQueryHash is essentially a Hash class, but with some OpenStruct-like features.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim;[I"q = QueryHash.new ;T:@format0o; ;[I":Entries can be added to the Hash via a setter method.;T@o;;[I" q.a = 1 ;T;0o; ;[I"'Then looked up via a query method.;T@o;;[I"q.a? #=> 1 ;T;0o; ;[I"1The can also be looked up via a bang method.;T@o;;[I"q.a! #=> 1 ;T;0o; ;[I"SThe difference between query methods and bang methods is that the bang method ;TI"Vwill auto-instantiate the entry if not present, where as a query method will not.;T@o; ;[I"MA QueryHash might not be quite as elegant as an OpenHash in that reader ;TI"Omethods must end in `?` or `!`, but it remains fully compatible with Hash ;TI"!regardless of it's settings.;T: @fileI"lib/hashery/query_hash.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[ [ [ [[I" class;T[[:public[[I"new;TI"lib/hashery/query_hash.rb;T[:protected[ [:private[ [I" instance;T[[;[[I"method_missing;F@<[I"respond_to?;F@<[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[@0I"Hashery;FcRDoc::NormalModule