Class: Dap::Filter::FilterMatchSelectValue
- Inherits:
-
Object
- Object
- Dap::Filter::FilterMatchSelectValue
- 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
150 151 152 153 154 155 156 157 158 159 160 |
# File 'lib/dap/filter/simple.rb', line 150 def process(doc) ndoc = {} self.opts.each_pair do |re,| doc.each_key do |k| if doc[k].match(re) ndoc[k] = doc[k] end end end (ndoc.keys.length == 0) ? [] : [ ndoc ] end |