Package lepl :: Package lexer :: Package lines :: Module monitor :: Class BlockMonitor
[hide private]
[frames] | no frames]

Class BlockMonitor

source code


This tracks the current indent level (in number of spaces). It is read by Line and updated by Block.
Instance Methods [hide private]
 
__init__(self, start=0)
start is the initial indent (in spaces).
source code
 
push_level(self, level)
Add a new indent level.
source code
 
pop_level(self)
Drop one level.
source code
 
indent(self)
The current indent value (number of spaces).
source code

Inherited from core.monitor.ActiveMonitor: pop, push

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, start=0)
(Constructor)

source code 
start is the initial indent (in spaces).
Overrides: object.__init__

indent(self)

source code 
The current indent value (number of spaces).
Decorators:
  • @property