Sha256: 3fe389d9e06e677e9d5e06acc75e96583e823d3c1482d647e4c525b644f8b7f5

Contents?: true

Size: 525 Bytes

Versions: 7

Compression:

Stored size: 525 Bytes

Contents

require 'hacker_news_search/client'

module HackerNewsSearch
  # Alias for HackerNewsSearch::Client.new
  #
  # @return [HackerNewsSearch::Client]
  def self.new
    HackerNewsSearch::Client.new
  end

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hacker_news_search-0.0.7 lib/hacker_news_search.rb
hacker_news_search-0.0.6 lib/hacker_news_search.rb
hacker_news_search-0.0.5 lib/hacker_news_search.rb
hacker_news_search-0.0.4 lib/hacker_news_search.rb
hacker_news_search-0.0.3 lib/hacker_news_search.rb
hacker_news_search-0.0.2 lib/hacker_news_search.rb
hacker_news_search-0.0.1 lib/hacker_news_search.rb