Class: Wukong::Processor::NotRegexpFilter
- Inherits:
-
RegexpFilter
- Object
- Hanuman::Stage
- Wukong::Processor
- Filter
- RegexpFilter
- Wukong::Processor::NotRegexpFilter
- Defined in:
- lib/wukong/widget/filters.rb
Overview
A widget which only passes records if they don't match a regular expression.
Constant Summary
Constants inherited from Wukong::Processor
Instance Attribute Summary
Attributes included from Hanuman::StageInstanceMethods
Instance Method Summary collapse
-
#select?(record) ⇒ true, false
Select a
record
only if it doesn't match this widget'smatch
field.
Methods inherited from Filter
Methods inherited from Wukong::Processor
configure, description, #finalize, #perform_action, #process, #receive_action, #setup, #stop
Methods included from Logging
Methods inherited from Hanuman::Stage
Methods included from Hanuman::StageClassMethods
#builder, #label, #register, #set_builder
Methods included from Hanuman::StageInstanceMethods
#add_link, #linkable_name, #root
Instance Method Details
#select?(record) ⇒ true, false
Select a record
only if it doesn't match this
widget's match
field.
199 200 201 202 |
# File 'lib/wukong/widget/filters.rb', line 199 def select?(record) return true unless match not match =~ record.to_s end |