Class: Dap::Filter::FilterInclude
- Inherits:
-
Object
- Object
- Dap::Filter::FilterInclude
- 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
67 68 69 70 71 72 73 74 |
# File 'lib/dap/filter/simple.rb', line 67 def process(doc) self.opts.each_pair do |k,v| if doc.has_key?(k) and doc[k].to_s.index(v) return [ doc ] end end [ ] end |