Peach :: Generators :: data :: WithDefault :: Class WithDefault
[hide private]

Class WithDefault

source code


Wrapps a Generator and makes the first and last value be a default value.

Instance Methods [hide private]
 
__init__(self, group, default, generator) source code
 
setDefaultValeu(self, data)
Set the default value, assumes we have a static or some other generator that exposes a "setValue()" method
source code
Method Details [hide private]

__init__(self, group, default, generator)
(Constructor)

source code 
Parameters:
  • default (Python primitive or Generator) - Default value
  • generator (Generator) - Generator to wrap