class Deface::Matchers::Element
Public Class Methods
new(selector)
click to toggle source
# File lib/deface/matchers/element.rb, line 4 def initialize(selector) @selector = selector end
Public Instance Methods
matches(document, log=true)
click to toggle source
# File lib/deface/matchers/element.rb, line 8 def matches(document, log=true) document.css(@selector).map { |match| [match] } end