Sha256: 1bef528f6ec7002a10d876a5502eb35fa4d6f3f5d63ae10675540aeab22b8cf0
Contents?: true
Size: 487 Bytes
Versions: 4
Compression:
Stored size: 487 Bytes
Contents
module Sniffles module Sniffers class Tumblr include Text 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? match?(/assets\.tumblr\.com\/iframe/) && match?(/<!-- BEGIN TUMBLR CODE -->/) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems