add path method
This commit is contained in:
parent
a8303cae45
commit
75c528c3df
1 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Union, List, Optional
|
from typing import Union, List, Optional
|
||||||
from ..logger import logger
|
from ..logger import logger
|
||||||
|
|
||||||
|
|
||||||
class GenericText:
|
class GenericText:
|
||||||
|
@ -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