Sha256: 72e90966adc9783f5dc6a5f2a3747e0fc19d828ec6e1af766f155f69ef1fa68d
Contents?: true
Size: 560 Bytes
Versions: 4
Compression:
Stored size: 560 Bytes
Contents
module Sniffles module Sniffers class Typepad 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 == "http://www.typepad.com/" 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