From: theschof@... (TheSchof) Date: 2002-01-18T12:57:49+09:00 Subject: Re: Can we use constant for a method name? >or what's going on here: >irb(main):005:0> class C >irb(main):006:1> def Meth >irb(main):007:2> puts 'from C' >irb(main):008:2> end >irb(main):009:1> end >nil >irb(main):010:0> C.Meth >NameError: private method `Meth' called for C:Class > from (irb):10 >irb(main):011:0> C::Meth >NameError: uninitialized constant Meth at C > from (irb):11 >irb(main):012:0> C::Meth() >NameError: private method `Meth' called for C:Class > from (irb):12 Sorry I also should have included: irb(main):006:0> C.Meth() NameError: undefined method `Meth' for C:Class from (irb):6 TIA, Alexander Schofield