add path method
This commit is contained in:
parent
a8303cae45
commit
75c528c3df
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue