Sha256: 316135d505c8b0525d2dc1af614aaf8be5f9c13641041416e0c63c5baba6257d

Contents?: true

Size: 553 Bytes

Versions: 1

Compression:

Stored size: 553 Bytes

Contents

$:.unshift(File.dirname(__FILE__))
require 'iconoclasm/downloader'
require 'iconoclasm/errors'
require 'iconoclasm/extractor'
require 'iconoclasm/favicon'
require 'iconoclasm/headers'

module Iconoclasm
  
  class << self
    include Iconoclasm::Extractor
    attr_accessor :timeout
    
    def extract(url, content = nil)
      Iconoclasm::Favicon.new(extract_favicon_from(url, content))
    end
  end
  
end

# For 1.8.6 compatibility.
class String
  def lines
    Enumerable::Enumerator.new(self.split("\n"))
  end
end unless ''.respond_to?(:lines)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iconoclasm-1.0.7 lib/iconoclasm.rb