hi friends,

I hav a query to ask...

class A
  def self.go
    return A.new
  end

  def method_missing( method_name)
   puts in methodmissing
   puts " #{method_name} method is missing"
  end

end

a = A.go
a.name # a.name will print in method missing & name method is missing.


upto here it is working.

now when i create an object

A.new.add # it also prints in method missing & add method is missing.

which i don't want I want that class method go which return an instance
should call method_missing not an instance which is created
by A.new

how am i supposed to do?
-- 
Posted via http://www.ruby-forum.com/.