steal away brotha - it's open source ;-)

On Oct 12, 12:10=A0pm, Tony Arcieri <tony.arci... / medioh.com> wrote:
> That's a cool idea I may have to steal for Reia :)
>
> HashWithIndifferentAccess is just so... meh :/
>
> On Mon, Oct 11, 2010 at 8:48 PM, ara.t.howard <ara.t.how... / gmail.com>wro=
te:
>
>
>
> > NAME
> > =A0map.rb
>
> > SYNOPSIS
> > =A0the ruby container you've always wanted: a string/symbol indifferent
> > ordered
> > =A0hash that works in all rubies
>
> > INSTALL
> > =A0gem install map
>
> > URI
> > =A0http://github.com/ahoward/map
>
> > DESCRIPTION
> > =A0m =3D Map[:k, :v, :key, :val]
> > =A0m =3D Map(:k, :v, :key, :val)
>
> > =A0m =3D Map[[:k, :v], [:key, :val]]
> > =A0m =3D Map[{:k =3D> :v, :key =3D> :val}]
>
> > =A0m =3D Map.new
> > =A0m[:a] =3D :b
> > =A0m[:b] =3D :b
> > =A0m[:c] =3D :c
>
> > =A0p m.keys #=3D> [:a, :b, :c] =A0### always ordered!
>
> > =A0p m[:a] =A0#=3D> :a
> > =A0p m["a"] #=3D> :a
>
> > =A0m.update(:k2 =3D> :v2)
> > =A0m.update(:k2, :v2)
>
> > =A0m.update :nested =3D> {:hashes =3D> {:are =3D> :converted}}
>
> > USAGE
> > =A0test/map_test.rb
>
> > enjoy.
>
> > --
> > -a
>
> --
> Tony Arcieri
> Medioh! A Kudelski Brand