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