A
ara.t.howard
NAME
map.rb
SYNOPSIS
the ruby container you've always wanted: a string/symbol indifferent ordered
hash that works in all rubies
INSTALL
gem install map
URI
http://github.com/ahoward/map
DESCRIPTION
m = Map[:k, :v, :key, :val]
m = Mapk, :v, :key, :val)
m = Map[[:k, :v], [:key, :val]]
m = Map[{:k => :v, :key => :val}]
m = Map.new
m[:a] = :b
m[:b] = :b
m[:c] = :c
p m.keys #=> [:a, :b, :c] ### always ordered!
p m[:a] #=> :a
p m["a"] #=> :a
m.updatek2 => :v2)
m.updatek2, :v2)
m.update :nested => {:hashes => {:are => :converted}}
USAGE
test/map_test.rb
enjoy.
map.rb
SYNOPSIS
the ruby container you've always wanted: a string/symbol indifferent ordered
hash that works in all rubies
INSTALL
gem install map
URI
http://github.com/ahoward/map
DESCRIPTION
m = Map[:k, :v, :key, :val]
m = Mapk, :v, :key, :val)
m = Map[[:k, :v], [:key, :val]]
m = Map[{:k => :v, :key => :val}]
m = Map.new
m[:a] = :b
m[:b] = :b
m[:c] = :c
p m.keys #=> [:a, :b, :c] ### always ordered!
p m[:a] #=> :a
p m["a"] #=> :a
m.updatek2 => :v2)
m.updatek2, :v2)
m.update :nested => {:hashes => {:are => :converted}}
USAGE
test/map_test.rb
enjoy.