Sha256: 3b307e16e648718c55cb09a3773d0f811a3d4b0db7873f1d6e6d947ddcaa13ec
Contents?: true
Size: 518 Bytes
Versions: 15
Compression:
Stored size: 518 Bytes
Contents
class LinkOracle module Extractor class Meta < Base def type :meta end def title found = parsed_body.at_xpath("//title/text()") found ? [found.content] : [] end def image get_content("//meta[contains(@name, 'thumbnail')]") end def description get_content("//meta[translate( @name, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz' ) = 'description']") end end end end
Version data entries
15 entries across 15 versions & 1 rubygems