Package lepl :: Package matchers :: Module transform :: Class TransformationWrapper
[hide private]
[frames] | no frames]

Class TransformationWrapper

source code


Helper object that composes transformations and also keeps a list of the separate transformations for introspection.
Instance Methods [hide private]
 
__init__(self, functions=None)
We accept either a list of a functions or a single value.
source code
 
extend(self, functions) source code
 
append(self, function) source code
 
compose(self, wrapper)
Apply wrapped transformations to the results of this wrapper.
source code
 
precompose(self, wrapper)
Insert the transformation before the existing functions.
source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code
 
__bool__(self) source code
 
__nonzero__(self) source code
 
__iter__(self)
Co-operate with graph routines.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, functions=None)
(Constructor)

source code 
We accept either a list of a functions or a single value.
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)