Class: Dap::Filter::FilterMatchRemove
- Inherits:
-
Object
- Object
- Dap::Filter::FilterMatchRemove
- Includes:
- Base
- Defined in:
- lib/dap/filter/simple.rb
Instance Attribute Summary
Attributes included from Base
Instance Method Summary collapse
Methods included from Base
Instance Method Details
#process(doc) ⇒ Object
70 71 72 73 74 75 76 77 78 79 |
# File 'lib/dap/filter/simple.rb', line 70 def process(doc) self.opts.each_pair do |re,_| doc.each_key do |k| if k.match(re) doc.delete(k) end end end [ doc ] end |