http://pastie.org/278407

The solution is packed into a module so that you can do something like
this:

hash = HashWithIndifferentAccess.new
hash.extend(HashMethodAccessors)

or:

class MySuperCoolHash < HashWithIndifferentAccess
  include HashMethodAccessors
end

hash = MySuperCoolHash.new

In other words: it is not hard-coded with HashWithIndifferentAccess or
just a Hash or whatever class you use as a hash.

--~--~---------~--~----~------------~-------~--~----~
Vous avez reçu ce message, car vous êtes abonné au groupe "Railsfrance" de 
Google Groups.
Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse 
[email protected]
Pour résilier votre abonnement envoyez un e-mail à l'adresse [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Répondre à