INNER CODE UNIT · Python
method
OverShifted/OverEngine · utils/wren_doc_gen.py:94
def method(self, method):
self.module.classes[-1].add_method(method)
self.flush(False)
def static_method(self, method):
self.module.classes[-1].add_static_method(method)
def doc(self, stripped_line):
self.docs += stripped_line[3:].strip() + ' '
def flush(self, flush_class):
if self.docs:
self.docs = self.docs.strip()
if flush_class:
self.module.classes[-1].docs = self.docs
else:
self.module.classes[-1].last_item.docs = self.docs
self.docs = ""