Please auto pull-up method
Brought to you by:
fabioz
Can you add the functionality described on pg. 322 of Martin Fowler's Refactoring book?
I have classes B and C which have a duplicated method:
class ClassB(object):
def duplicatedMethod(self)
print ("Hi")
class ClassC(object):
def duplicatedMethod(self)
print ("Hi")
I would like a refactoring option to create a new base class (or add to it) such that the selected method is automatically populated on the base class.
So after running the refactoring I would have:
class ClassA(object):
def duplicatedMethod(self)
print ("Hi")
class ClassB(ClassA):
class ClassC(ClassA):