Class: MethodFilter

Inherits:
DefinitionFilter show all
Defined in:
lib/notroff/embedded.rb

Instance Method Summary collapse

Methods inherited from DefinitionFilter

#process

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