Class: Dap::Filter::FilterInsert

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



178
179
180
181
182
183
# File 'lib/dap/filter/simple.rb', line 178

def process(doc)
  self.opts.each_pair do |k,v|
      doc[k] = v
  end
 [ doc ]
end