Class: Dap::Filter::FilterMatchRemove

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/dap/filter/simple.rb

Instance Attribute Summary

Attributes included from Base

#name, #opts

Instance Method Summary collapse

Methods included from Base

#initialize

Instance Method Details

#process(doc) ⇒ Object



106
107
108
109
110
111
112
113
114
115
# File 'lib/dap/filter/simple.rb', line 106

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