Sha256: 53c23fd542af8cc1d5f794ee807ae9d3efab4317d87bc428e0285a67f831af35
Contents?: true
Size: 550 Bytes
Versions: 4
Compression:
Stored size: 550 Bytes
Contents
module Sniffles module Sniffers class Prestashop include HTML attr_accessor :doc attr_reader :output def initialize(response_body) @output = {} parse(response_body) && process_document end def process_document @output[:found] = found? end private def found? meta_generator_content == "PrestaShop" end def meta_generator_content text_at("//meta[@name='generator']/@content") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems