def __init__(self, foreman):
self._foreman = foreman<EOL>for method_name in ('<STR_LIT:index>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>method = getattr(self, method_name, None)<EOL>method_name = "<STR_LIT>" % (<EOL>method_name,<EOL>self.__class__.__name__.lower(),<EOL>)<EOL>if method:<EOL><INDENT>setattr(self._foreman, method_name, method)<EOL><DEDENT><DEDENT>
:param foreman: instance of Foreman class