Module base_class
source code
The base class for all the user function classes.
|
status = Status()
|
|
width = 100
|
|
__package__ = ' prompt '
|
Imports:
platform,
sys,
wrap,
ansi,
help,
Status,
split,
strip
Build the fn.__doc__ docstring.
- Parameters:
fn (method) - The user function to build the docstring for.
|
Create the formatted subtitle string.
- Parameters:
text (str) - The name of the subtitle.
- Returns: str
- The formatted subtitle.
|
Format the text by stripping whitespace and wrapping.
- Parameters:
text (str) - The text to strip and wrap.
- Returns: str
- The stripped and wrapped text.
|
Strip the leading whitespace from the given text.
- Parameters:
text (str) - The text to strip the leading whitespace from.
- Returns: str
- The text with leading whitespace removed.
|