JezK
Edit File: ordered%21-i.ri
U:RDoc::AnyMethod[iI" ordered!:EFI"Hashery::PathHash#ordered!;FF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"OSets the SlashedArray as ordered. The *keys_in_order must be a flat array ;TI";of slashed keys that specify the order for each level:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"7s = {'a'=>{'b'=>'c', 'c'=>'d'}, 'b'=>'c'}.slashed ;TI"#s.ordered!('b', 'a/c', 'a/b') ;TI"9s.expand # => {'b'=>'c', 'a'=>{'c'=>'d', 'b'=>'c'}} ;TI"=# Note that the expanded hashes will *still* be ordered!;T:@format0: @fileI"lib/hashery/path_hash.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(*keys_in_order);T@FI" PathHash;FcRDoc::NormalClass00