From: ara.t.howard@... Date: 2007-03-25T01:49:53+09:00 Subject: Re: Hash#map_pairs On Sun, 25 Mar 2007 jeff_alexander_44@yahoo.com wrote: > > $ irb > irb(main):001:0> Hash.instance_methods.include? "map" > => true > > So one would expect "map" to appear under "Instance methods" in ri. > Of course it comes from a mixin. That's not the issue here. The > existence of this thread is a data point. > > Thus ensues the eternal struggle between those who are accustomed to > the idiosyncrasies and those who are driven insane by them. ruby is a dangerous place to be if that sort of thing drives a fellow insane: harp:~ > irb -r ostruct irb(main):001:0> os = OpenStruct.new => # irb(main):002:0> os.methods.grep /foobar/ => [] irb(main):003:0> os.foobar = 42 => 42 irb(main):004:0> os.foobar => 42 -a -- be kind whenever possible... it is always possible. - the dalai lama