rope.refactor.introduce_factory =============================== .. py:module:: rope.refactor.introduce_factory Attributes ---------- .. autoapisummary:: rope.refactor.introduce_factory.IntroduceFactoryRefactoring Classes ------- .. autoapisummary:: rope.refactor.introduce_factory.IntroduceFactory Module Contents --------------- .. py:class:: IntroduceFactory(project, resource, offset) .. py:attribute:: project .. py:attribute:: offset .. py:attribute:: old_pyname .. py:attribute:: old_name .. py:attribute:: pymodule .. py:attribute:: resource .. py:method:: 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. .. py:method:: get_name() Return the name of the class .. py:data:: IntroduceFactoryRefactoring