From: Pedro Silva Date: 2008-09-01T05:40:26+09:00 Subject: Re: instance_eval/class_eval including/extending modules Really fast this time. ;) > For the case where self is the class and define_method and def behave > similarly, there's class_eval. Instead of having instance_eval treat > classes as a special case, which would be inconsistent and confusing, > there's a separate method for doing something very similar to a > 'class' block, but with a code block. I understand, I guess I can't distinguish very well self from current class concept. Can you explain the difference? One last question to see if I understand all this correctly. Private methods are invoked on self, other non-private methods are invoked on current class? -- Posted via http://www.ruby-forum.com/.