Public Member Functions | Public Attributes | List of all members
geneus.generate.IndentedWriter Class Reference

Indented writer. More...

Public Member Functions

def __init__ (self, s)
 
def block_next_indent (self)
 
def dec_indent (self, dec=2)
 
def inc_indent (self, inc=2)
 
def newline (self)
 
def reset_indent (self)
 
def write (self, s, indent=True, newline=True)
 

Public Attributes

 block_indent
 
 indentation
 
 str
 

Detailed Description

Indented writer.

Definition at line 174 of file generate.py.

Constructor & Destructor Documentation

◆ __init__()

def geneus.generate.IndentedWriter.__init__ (   self,
  s 
)

Definition at line 176 of file generate.py.

Member Function Documentation

◆ block_next_indent()

def geneus.generate.IndentedWriter.block_next_indent (   self)

Definition at line 206 of file generate.py.

◆ dec_indent()

def geneus.generate.IndentedWriter.dec_indent (   self,
  dec = 2 
)

Definition at line 200 of file generate.py.

◆ inc_indent()

def geneus.generate.IndentedWriter.inc_indent (   self,
  inc = 2 
)

Definition at line 197 of file generate.py.

◆ newline()

def geneus.generate.IndentedWriter.newline (   self)

Definition at line 194 of file generate.py.

◆ reset_indent()

def geneus.generate.IndentedWriter.reset_indent (   self)

Definition at line 203 of file generate.py.

◆ write()

def geneus.generate.IndentedWriter.write (   self,
  s,
  indent = True,
  newline = True 
)

Definition at line 181 of file generate.py.

Member Data Documentation

◆ block_indent

geneus.generate.IndentedWriter.block_indent

Definition at line 179 of file generate.py.

◆ indentation

geneus.generate.IndentedWriter.indentation

Definition at line 178 of file generate.py.

◆ str

geneus.generate.IndentedWriter.str

Definition at line 177 of file generate.py.


The documentation for this class was generated from the following file:


geneus
Author(s): Kei Okada
autogenerated on Mon Feb 28 2022 22:23:00