Sha256: e2d1713602b9847a1c49fc469b09f4a01a1039926e67b4146959ea33c7be3428

Contents?: true

Size: 712 Bytes

Versions: 2

Compression:

Stored size: 712 Bytes

Contents

--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Keep dictionary sorted by key.
- !ruby/struct:SM::Flow::VERB 
  body: "  d = Dictionary.new.order_by_key\n  d["z"] = 1\n  d["y"] = 2\n  d["x"] = 3\n  d  #=> {"x"=>3,"y"=>2,"z"=>2}\n"
- !ruby/struct:SM::Flow::P 
  body: "This is equivalent to:"
- !ruby/struct:SM::Flow::VERB 
  body: "  Dictionary.new.order_by { |key,value| key }\n"
- !ruby/struct:SM::Flow::P 
  body: The initializer Dictionary#alpha also provides this.
full_name: Dictionary#order_by_key
is_singleton: false
name: order_by_key
params: ()
visibility: public

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facets-2.4.2 doc/ri/Dictionary/order_by_key-i.yaml
facets-2.4.3 doc/ri/Dictionary/order_by_key-i.yaml