Sha256: 80f82e430bbeb92325399ce422db93d1795b7930aea852abb71b326bcd64e9a8

Contents?: true

Size: 328 Bytes

Versions: 6

Compression:

Stored size: 328 Bytes

Contents

# frozen_string_literal: true

module WhatWeb
  module Matcher
    class TagPattern < Base
      attr_reader :tag_pattern
      def initialize(target, match)
        super(target, match)
        @tag_pattern = match[:tag_pattern]
      end

      def match?
        tag_pattern == target.tag_pattern
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simple_whatweb-0.4.1 lib/whatweb/matcher/tag_pattern.rb
simple_whatweb-0.4.0 lib/whatweb/matcher/tag_pattern.rb
simple_whatweb-0.3.0 lib/whatweb/matcher/tag_pattern.rb
simple_whatweb-0.2.1 lib/whatweb/matcher/tag_pattern.rb
simple_whatweb-0.2.0 lib/whatweb/matcher/tag_pattern.rb
simple_whatweb-0.1.0 lib/whatweb/matcher/tag_pattern.rb