(self, obj: T.Union[Function, Object], in_code_block: bool = False)
Generate a palaceholder tag for the the function/method/object documentation.
            This tag is then replaced in the custom hotdoc plugin.
Generate a palaceholder tag for the the function/method/object documentation.
            This tag is then replaced in the custom hotdoc plugin.
Generate a palaceholder tag for the the function / method / object documentation . This tag is then replaced in the custom hotdoc plugin .
def _link_to_object(self, obj: T.Union[Function, Object], in_code_block: bool = False) -> str:
        '''
            Generate a palaceholder tag for the the function/method/object documentation.
            This tag is then replaced in the custom hotdoc plugin.
        '''
        prefix = '#' if in_code_block else ''
        if isinstance(obj, Object):
            return f'[[{prefix}@{obj.name}]]'
        elif isinstance(obj, Method):
            return f'[[{prefix}{obj.obj.name}.{obj.name}]]'
        elif isinstance(obj, Function):
            return f'[[{prefix}{obj.name}]]'
        else:
            raise RuntimeError(f'Invalid argument {obj}')
def _link_to_object ( self , obj : T . Union [ Function , Object ] , in_code_block : bool = False ) -> str : prefix = '#' if in_code_block else '' if isinstance ( obj , Object ) : return f'[[{prefix}@{obj.name}]]' elif isinstance ( obj , Method ) : return f'[[{prefix}{obj.obj.name}.{obj.name}]]' elif isinstance ( obj , Function ) : return f'[[{prefix}{obj.name}]]' else : raise RuntimeError ( f'Invalid argument {obj}' )