Class: Dap::Filter::FilterFlatten
- Inherits:
-
Object
- Object
- Dap::Filter::FilterFlatten
- 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
293 294 295 296 297 298 299 300 301 302 |
# File 'lib/dap/filter/simple.rb', line 293 def process(doc) self.opts.each_pair do |k,| if doc.has_key?(k) and doc[k].is_a?(Hash) doc[k].each_pair do |fk,fv| doc["#{k}.#{fk}"] = fv end end end [ doc ] end |