rope.refactor.introduce_factory
Attributes
Classes
Module Contents
- class rope.refactor.introduce_factory.IntroduceFactory(project, resource, offset)
- project
- offset
- old_pyname
- old_name
- pymodule
- resource
- get_changes(factory_name, global_factory=False, resources=None, task_handle=taskhandle.DEFAULT_TASK_HANDLE)
Get the changes this refactoring makes
factory_name indicates the name of the factory function to be added. If global_factory is True the factory will be global otherwise a static method is added to the class.
resources can be a list of rope.base.resource.File that this refactoring should be applied on; if None all python files in the project are searched.
- get_name()
Return the name of the class
- rope.refactor.introduce_factory.IntroduceFactoryRefactoring