Sha256: 4173c477872b8e6a9086fba4ddc103d4ccc49b5c0b7d4c880e95f1655196de08
Contents?: true
Size: 544 Bytes
Versions: 5
Compression:
Stored size: 544 Bytes
Contents
module Sniffles module Sniffers class Blogger 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 == "blogger" end def meta_generator_content text_at("//meta[@name='generator']/@content") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems