On 10/18/06, Trans <transfire / gmail.com> wrote: > > Hal Fulton wrote: > > > Conflict with block syntax. You can't say hash {"A"} meaningfully. > > In fact, I'm not certain why that returns an integer. > > Huh? You must know. It's the #hash method: > > irb(main):001:0> o = Object.new > => #<Object:0xb7d06254> > irb(main):002:0> o.hash > => -605540054 > irb(main):003:0> o.hash { } > => -605540054 > And stressing the, probably, obvious: irb(main):001:0> hash => -605215560 irb(main):002:0> self.hash => -605215560 -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/