Class: Dap::Filter::FilterFieldArrayJoinWhitespace
- Inherits:
-
Object
- Object
- Dap::Filter::FilterFieldArrayJoinWhitespace
- 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
459 460 461 462 463 464 465 466 |
# File 'lib/dap/filter/simple.rb', line 459 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 |