public
Rubygem
Description: Mash is a Hash with the ability to read, write, and test for the presence of arbitrary attributes using method calls.
Homepage:
Clone URL: git://github.com/mbleigh/mash.git
Make Mash[] work too
judofyr (author)
Sat Aug 02 04:47:02 -0700 2008
commit  b437e8d93bc1d11cd8b83edc600287e4e746f25a
tree    8bc91637be7a6289715abc377caee32f09393708
parent  40e11f61dbf4ac184f1d0dd76e691afe75d0be56
...
49
50
51
 
 
52
53
54
...
49
50
51
52
53
54
55
56
0
@@ -49,6 +49,8 @@ class Mash < Hash
0
     super(&blk)
0
   end
0
   
0
+  class << self; alias [] new; end
0
+
0
   def id #:nodoc:
0
     self["id"] ? self["id"] : super
0
   end

Comments