> Also as you'd expect, instantiating a new Object and then calling the
> private method blows up:
> 
> irb(main):007:0> o = Object.new
> => #<Object:0x355410>
> irb(main):008:0> o.method1
> NoMethodError: private method `method1' called for #<Object:0x355410>
>         from (irb):8
>         from :0

Thanks a lot, Pat. I am much clear about the concept now.

Li

-- 
Posted via http://www.ruby-forum.com/.