Sha256: a2dcf591824692c1d6e685e5b2ba8a27fbca70f3d629cb17ed508ecfacfa8679

Contents?: true

Size: 673 Bytes

Versions: 3

Compression:

Stored size: 673 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

3 entries across 3 versions & 1 rubygems

Version Path
readability_parser-0.0.3 lib/readability_parser.rb
readability_parser-0.0.2 lib/readability_parser.rb
readability_parser-0.0.1 lib/readability_parser.rb