Class: RegularExpressionExcludeFilter
- Defined in:
- lib/notroff/filter.rb
Instance Method Summary collapse
- #included?(paragraph) ⇒ Boolean
-
#initialize(exclude_re) ⇒ RegularExpressionExcludeFilter
constructor
A new instance of RegularExpressionExcludeFilter.
Methods inherited from Filter
Constructor Details
#initialize(exclude_re) ⇒ RegularExpressionExcludeFilter
Returns a new instance of RegularExpressionExcludeFilter.
18 19 20 |
# File 'lib/notroff/filter.rb', line 18 def initialize(exclude_re) @exclude_re = exclude_re end |
Instance Method Details
#included?(paragraph) ⇒ Boolean
22 23 24 |
# File 'lib/notroff/filter.rb', line 22 def included?(paragraph) @exclude_re !~ paragraph end |