(node, blob=None)
| 63 | |
| 64 | @staticmethod |
| 65 | def get_docstring(node, blob=None): |
| 66 | if blob: |
| 67 | logger.info('From version `0.0.6` this function will update argument in the API') |
| 68 | docstring_node = RubyParser.get_docstring_node(node) |
| 69 | docstring = [] |
| 70 | for item in docstring_node: |
| 71 | doc = get_node_text(item) |
| 72 | doc_lines = doc.split('\n') |
| 73 | for line in doc_lines: |
| 74 | if '=begin' in line or '=end' in line: |
| 75 | continue |
| 76 | docstring.append(line) |
| 77 | |
| 78 | docstring = '\n'.join(docstring) |
| 79 | return docstring |
| 80 | |
| 81 | @staticmethod |
| 82 | def get_function_metadata(function_node, blob=None) -> Dict[str, str]: |
nothing calls this directly
no test coverage detected