Class: Watobo::Interceptor::HttpParmsFilter
- Defined in:
- lib/watobo/core/intercept_filter.rb
Instance Attribute Summary
Attributes inherited from Filter
Instance Method Summary collapse
Methods inherited from Filter
#initialize, #match?, #name, #negate=, #negated?
Constructor Details
This class inherits a constructor from Watobo::Interceptor::Filter
Instance Method Details
#check?(item, flags = nil) ⇒ Boolean
76 77 78 79 80 81 82 |
# File 'lib/watobo/core/intercept_filter.rb', line 76 def check?(item, flags=nil) return false unless item.respond_to? :parms return true if @pattern.empty? match = request.parms.find {|x| x =~ /#{@pattern}/ } match = !match_parms.nil? match end |