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