Class: ClassFilter
- Inherits:
-
DefinitionFilter
- Object
- DefinitionFilter
- ClassFilter
- Defined in:
- lib/notroff/embedded.rb
Instance Method Summary collapse
-
#initialize(class_name, include_body) ⇒ ClassFilter
constructor
A new instance of ClassFilter.
Methods inherited from DefinitionFilter
Constructor Details
#initialize(class_name, include_body) ⇒ ClassFilter
Returns a new instance of ClassFilter.
66 67 68 |
# File 'lib/notroff/embedded.rb', line 66 def initialize(class_name, include_body) super /^ *class +#{class_name}(\(|$| )/, include_body end |