JezK
Edit File: cdesc-PathHash.ri
U:RDoc::NormalClass[iI" PathHash:EFI"Hashery::PathHash;FI" Hash;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[ I"MA PathHash is a hash whose values can be accessed in the normal manner, ;TI"Por with keys that are slash (`/`) separated strings. To get the whole hash ;TI"Sas a single flattened level, call `#flat`. All keys are converted to strings. ;TI"EAll end-of-the-chain values are kept in whatever value they are.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim;[ I"2s = PathHash['a' => 'b', 'c' => {'d' => :e}] ;TI"s['a'] #=> 'b' ;TI"#s['c'] #=> {slashed: 'd'=>:e} ;TI"s['c']['d'] #=> :e ;TI"s['c/d'] #=> :e ;T:@format0o; ;[I"MPathHash is derived from the SlashedHash class in the HashMagic project ;TI"-by Daniel Parker <gems@behindlogic.com>.;T@o; ;[I"ECopyright (c) 2006 BehindLogic (http://hash_magic.rubyforge.org);T@o; ;[I"Authors: Daniel Parker;T@o; ;[I"YTODO: This class is very much a work in progess and will be substantially rewritten ;TI"for future versions.;T: @fileI"lib/hashery/path_hash.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[ [ [ [[I" class;T[[:public[[I"new;TI"lib/hashery/path_hash.rb;T[:protected[ [:private[ [I" instance;T[[;[[I"==;T@6[I"[];F@6[I"[]=;F@6[I"delete;F@6[I"empty?;F@6[I"expand;F@6[I" flat;F@6[I" index;F@6[I"inspect;F@6[I" keys;F@6[I"ordered;F@6[I" ordered!;F@6[I"to_string_array;F@6[;[ [;[[I"flatten_to_array;F@6[I"flatten_to_hash;F@6[ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[@*I"Hashery;FcRDoc::NormalModule