Class: Dap::Filter::FilterExclude
- Inherits:
-
Object
- Object
- Dap::Filter::FilterExclude
- 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
218 219 220 221 222 223 224 225 |
# File 'lib/dap/filter/simple.rb', line 218 def process(doc) self.opts.each_pair do |k,v| if doc.has_key?(k) and doc[k].to_s.index(v) return [ ] end end [ doc ] end |