add path method

This commit is contained in:
Maximilian Keßler 2022-02-06 22:20:16 +01:00
parent a8303cae45
commit 75c528c3df

View file

@ -33,6 +33,9 @@ class GenericText:
self._content = None self._content = None
self._path = content self._path = content
def path(self) -> Optional[Path]:
return self._path
def format(self, **kwargs) -> str: def format(self, **kwargs) -> str:
lines = [] lines = []
for line in self._content: for line in self._content: