Sha256: 24e3bb2ebeee5755266ed4ba5efea663fbf967e93016eeec7a0fc242269944a7

Contents?: true

Size: 242 Bytes

Versions: 28

Compression:

Stored size: 242 Bytes

Contents

module Deface
  module Matchers
    class Element
      def initialize(selector)
        @selector = selector
      end

      def matches(document, log=true)
        document.css(@selector).map { |match| [match] }
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre2 vendor/bundle/gems/deface-1.0.1/lib/deface/matchers/element.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/deface-1.0.1/lib/deface/matchers/element.rb
deface-1.0.1 lib/deface/matchers/element.rb
deface-1.0.0 lib/deface/matchers/element.rb
deface-1.0.0.rc4 lib/deface/matchers/element.rb
deface-1.0.0.rc3 lib/deface/matchers/element.rb
deface-1.0.0.rc2 lib/deface/matchers/element.rb
deface-1.0.0.rc1 lib/deface/matchers/element.rb