I was trying to redefine new in my class…like this…
alias oldnew new
yield if block_given?
NameError: undefined method
new' for classKK’
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