Sha256: 8ff017e51d67725b9af46c99da5b899d83deb03d4ce2fd0bd5e7d1e527c60903

Contents?: true

Size: 161 Bytes

Versions: 7

Compression:

Stored size: 161 Bytes

Contents

# coding: utf-8

module Retter::HTMLSupport
  def texts_of(str, selector)
    Nokogiri::HTML(str).search(selector).map {|el|
      el.text.strip
    }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
retter-0.1.3 spec/support/html_support.rb
retter-0.1.2 spec/support/html_support.rb
retter-0.1.1 spec/support/html_support.rb
retter-0.1.0 spec/support/html_support.rb
retter-0.0.4 spec/support/html_support.rb
retter-0.0.3 spec/support/html_support.rb
retter-0.0.2 spec/support/html_support.rb