Class: SkipFilter
- Inherits:
-
Object
- Object
- SkipFilter
- Defined in:
- lib/notroff/embedded.rb
Instance Method Summary collapse
-
#initialize(re1) ⇒ SkipFilter
constructor
A new instance of SkipFilter.
- #process(paras) ⇒ Object
Constructor Details
#initialize(re1) ⇒ SkipFilter
Returns a new instance of SkipFilter.
2 3 4 |
# File 'lib/notroff/embedded.rb', line 2 def initialize(re1) @re = re end |
Instance Method Details
#process(paras) ⇒ Object
6 7 8 |
# File 'lib/notroff/embedded.rb', line 6 def process(paras) paras.find_all {|p| p != re} end |