Sha256: 547797346f862b7c114ebc33009885b8c1dc768713b8cbe3e7b23618244ce577

Contents?: true

Size: 452 Bytes

Versions: 3

Compression:

Stored size: 452 Bytes

Contents

require 'gems/client'

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

  # Delegate to Gems::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

3 entries across 3 versions & 1 rubygems

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