Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: how do I convince Hash that two keys are the same?: msg#00053

Subject: Re: how do I convince Hash that two keys are the same?
irb(main):007:0> class Blah; def initialize n; @n = n; end; def foo; self.class.new 20; end; end
=> nil
irb(main):008:0> class Boo < Blah; end
=> nil
irb(main):009:0> Boo.new(100).foo
=> #<Boo:0x5f7f0 @n=20>

Alex





<Prev in Thread] Current Thread [Next in Thread>