Documents an individual method. Args: name: string, Name of the method. doc: string, The methods docstring.
(name, doc)
| 251 | |
| 252 | |
| 253 | def method(name, doc): |
| 254 | """Documents an individual method. |
| 255 | |
| 256 | Args: |
| 257 | name: string, Name of the method. |
| 258 | doc: string, The methods docstring. |
| 259 | """ |
| 260 | import html |
| 261 | |
| 262 | params = method_params(doc) |
| 263 | doc = html.escape(doc) |
| 264 | return string.Template(METHOD_TEMPLATE).substitute( |
| 265 | name=name, params=params, doc=doc |
| 266 | ) |
| 267 | |
| 268 | |
| 269 | def breadcrumbs(path, root_discovery): |
no test coverage detected
searching dependent graphs…