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
deface-1.9.0 lib/deface/matchers/element.rb
deface-1.8.2 lib/deface/matchers/element.rb
deface-1.8.1 lib/deface/matchers/element.rb
deface-1.8.0 lib/deface/matchers/element.rb
deface-1.7.0 lib/deface/matchers/element.rb
deface-1.6.2 lib/deface/matchers/element.rb
deface-1.6.1 lib/deface/matchers/element.rb
deface-1.6.0 lib/deface/matchers/element.rb
deface-1.5.3 lib/deface/matchers/element.rb
deface-1.5.2 lib/deface/matchers/element.rb
deface-1.5.1 lib/deface/matchers/element.rb
deface-1.5.0 lib/deface/matchers/element.rb
deface-1.4.0 lib/deface/matchers/element.rb
deface-1.3.2 lib/deface/matchers/element.rb
deface-1.3.1 lib/deface/matchers/element.rb
deface-1.3.0 lib/deface/matchers/element.rb
deface-1.2.0 lib/deface/matchers/element.rb
deface-1.1.0 lib/deface/matchers/element.rb
deface-1.0.2 lib/deface/matchers/element.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/deface-1.0.1/lib/deface/matchers/element.rb