Package oort :: Package util :: Module code :: Class BooleanDecorator
[hide private]
[frames] | no frames]

Class BooleanDecorator

source code

object --+
         |
        BooleanDecorator

A documentation helper. Usage:

>>> contract = BooleanDecorator('interface')
>>> class T:
...     @contract.interface
...     def action(self): raise NotImplementedError
...
>>> assert T.action.interface == True


Instance Methods [hide private]
 
__init__(self, *args)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__getattr__(self, name) source code

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

Properties [hide private]
  attributes

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)