Yes, I want my method access too!..
Perhaps it'd be extra worthy of the '2.0' if you also did something
akin to:
def [](k);super(k.to_s);end
def []=(k,v);super(k.to_s,v);end
it's some bytes, but I think it's worth it!
What ever happened to Mash?
On 25/01/2009, at 1:50 AM, Aria Stewart wrote:
On Jan 24, 2009, at 7:24, zimbatm <[email protected]> wrote:
Hi Magnus,
I prefer using method_missing, with string access for fallback when
key names are not compatible with ruby method names.
And I prefer symbols, but it's a total edge case to me. Strings are
great too, and it'd bug me less than indifference.
Aria
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list