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
450 451 452 453 454 455 456 457 |
# File 'lib/dap/filter/simple.rb', line 450 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 |