Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Static Public Attributes
MoinMoin.support.pygments.filter.FunctionFilter Class Reference
Inheritance diagram for MoinMoin.support.pygments.filter.FunctionFilter:
Inheritance graph
[legend]
Collaboration diagram for MoinMoin.support.pygments.filter.FunctionFilter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def filter

Public Attributes

 options

Static Public Attributes

 function = None

Detailed Description

Abstract class used by `simplefilter` to create simple
function filters on the fly. The `simplefilter` decorator
automatically creates subclasses of this class for
functions passed to it.

Definition at line 56 of file filter.py.


Constructor & Destructor Documentation

Reimplemented from MoinMoin.support.pygments.filter.Filter.

Definition at line 65 of file filter.py.

00065 
00066     def __init__(self, **options):
00067         if not hasattr(self, 'function'):
00068             raise TypeError('%r used without bound function' %
00069                             self.__class__.__name__)
00070         Filter.__init__(self, **options)


Member Function Documentation

def MoinMoin.support.pygments.filter.FunctionFilter.filter (   self,
  lexer,
  stream 
)

Reimplemented from MoinMoin.support.pygments.filter.Filter.

Definition at line 71 of file filter.py.

00071 
00072     def filter(self, lexer, stream):
00073         # pylint: disable-msg=E1102
00074         for ttype, value in self.function(lexer, stream, self.options):
00075             yield ttype, value

Member Data Documentation

Definition at line 63 of file filter.py.

Definition at line 50 of file filter.py.


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