Sha256: 6ca8cc90c325aea63c6992a4298361bf32f8ee34511a43ac8498072290333454

Contents?: true

Size: 678 Bytes

Versions: 2

Compression:

Stored size: 678 Bytes

Contents

require 'readability_parser/configuration'
require 'readability_parser/client'

module ReadabilityParser
  extend Configuration

  class << self
    # Alias for ReadabilityParser::Client.new
    #
    # @return [ReadabilityParser::Client]
    def new(options = {})
      ReadabilityParser::Client.new(options)
    end

    # Delegate to ReadabilityParser::Client
    def method_missing(method, *args, &block)
      return super unless new.respond_to?(method)
      new.send(method, *args, &block)
    end

    def respond_to?(method, include_private = false)
      new.respond_to?(method, include_private) || super(method, include_private)
    end
  end
end # ReadabilityParser

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
readability_parser-0.0.5 lib/readability_parser.rb
readability_parser-0.0.4 lib/readability_parser.rb