I noticed for the class definition, if I open up the class MyClass
, and add something in between without overwrite I still got the original method which defined earlier. The new statements added augment the existing one.
But as to the method definition, I still want the same behavior as the class definition, but it seems when I open up the def my_method
, the exiting statements within the def
and end
is overwritten, I need to rewrite that again.
So is there any way to make the method definition behave the same as definition, something like super
, but not necessarily is the sub-class?