Class: Dap::Filter::FilterRemove

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



120
121
122
123
124
125
126
127
# File 'lib/dap/filter/simple.rb', line 120

def process(doc)
  self.opts.each_pair do |k,v|
    if doc.has_key?(k)
      doc.delete(k)
    end
  end
 [ doc ]
end