lib/roda/plugins/mail_processor.rb
def _match_content(field, val, content)
          case val
          when String
            content.include?(val)
          when Array
            val.each do |v|
              if content.include?(v)
                return @captures << v
              end
            end
            false
          when Regexp
            if md = val.match(content)
              @captures.concat(md.captures)
            end
          else
            unsupported_matcher(field=>val)
          end
        end
# Match if the content matches the given val, which
# can be a string (case sensitive substring match), array of
# strings (case sensitive substring match of any string), or regexp
# (normal regexp match).
Match if the content matches the given val, which
can be a string (case sensitive substring match), array of
strings (case sensitive substring match of any string), or regexp
(normal regexp match).
Match if the content matches the given val which can be a string ( case sensitive substring match ) array of strings ( case sensitive substring match of any string ) or regexp ( normal regexp match ) .
def _match_content(field, val, content)
          case val
          when String
            content.include?(val)
          when Array
            val.each do |v|
              if content.include?(v)
                return @captures << v
              end
            end
            false
          when Regexp
            if md = val.match(content)
              @captures.concat(md.captures)
            end
          else
            unsupported_matcher(field=>val)
          end
        end
def _match_content ( field , val , content ) case val when String content . include? ( val ) when Array val . each do | v | if content . include? ( v ) return @captures << v end end false when Regexp if md = val . match ( content ) @captures . concat ( md . captures ) end else unsupported_matcher ( field => val ) end end
Match if the content matches the given val, which
can be a string (case sensitive substring match), array of
strings (case sensitive substring match of any string), or regexp
(normal regexp match).
Match if the content matches the given val which can be a string ( case sensitive substring match ) array of strings ( case sensitive substring match of any string ) or regexp ( normal regexp match ) .
field
val
content