(self, module_string, element_string, evaled, is_class = False)
| 136 | return res |
| 137 | |
| 138 | def generate_non_callable_docs(self, module_string, element_string, evaled, is_class = False): |
| 139 | if element_string[0] != '_' and type(evaled) != types.ModuleType: |
| 140 | t = str(type(evaled)) |
| 141 | t = t.split("'") |
| 142 | directive = "----\n\n.. data" if not is_class else " .. attribute" |
| 143 | res = '\n{0}:: {1}\n\n'.format(directive , element_string) |
| 144 | res += ' Attribute of type: {0}\n'.format(t[1]) |
| 145 | res += ' ``{0}``\n'.format(repr(evaled)) |
| 146 | if not is_class: |
| 147 | self.attributes.append(res) |
| 148 | else: |
| 149 | self.classes.append(res) |
| 150 | |
| 151 | def generate_callable_wikidocs(self, module_string, element_string, evaled, is_class = False): |
| 152 | if _is_method(evaled): |
no outgoing calls
no test coverage detected