Hi,
I was trying to redefine new in my class..like this..


class KK
   alias oldnew new
 def new
  yield if block_given?
   oldnew
  end
end
NameError: undefined method `new' for class `KK'

why is saying no 'new' method....I don't understand.
because I can say KK.new after I define the class which means the method
is there in the class hierarchy and I should be able to override its
implementation....

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