Class: Dap::Filter::FilterFieldArrayJoinComma
- Inherits:
-
Object
- Object
- Dap::Filter::FilterFieldArrayJoinComma
- 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
509 510 511 512 513 514 515 516 |
# File 'lib/dap/filter/simple.rb', line 509 def process(doc) self.opts.each_pair do |k,v| if doc.has_key?(v) and doc[v].respond_to?(:each) doc[k] = doc[v].join(",") end end [ doc ] end |