Class: Dap::Filter::FilterSelect
- Inherits:
-
Object
- Object
- Dap::Filter::FilterSelect
- 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
111 112 113 114 115 116 117 118 119 |
# File 'lib/dap/filter/simple.rb', line 111 def process(doc) ndoc = {} self.opts.each_pair do |k,v| if doc.has_key?(k) ndoc[k] = doc[k] end end (ndoc.keys.length == 0) ? [] : [ ndoc ] end |