package mantra.mdk
Formatter
CLASS
public class
Canonical source code formatter standardizing indentation to exact 4 spaces without tabs.
🏗️ Constructor Summary
Constructor Signature
def __init__(self)
⚙️ Method Summary
| Modifier & Return Type | Method Signature | Description |
|---|---|---|
Bool |
format_file(path: Path) |
Formats target file. |
🔍 Detailed Method Specifications
pub def format_file(path: Path) -> Bool
Formats target file.
💡 Example Usage
formatter_example.mantra
Formatter.format_file(Path("src/main.mantra"))