Class: SkipFilter

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

Instance Method Summary collapse

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