Sha256: 9014c44063766c5c0a04d1bbbe32ec404b4077d24874a627a6d921dff69787cd

Contents?: true

Size: 584 Bytes

Versions: 3

Compression:

Stored size: 584 Bytes

Contents

require 'commons/configuration'
require 'commons/client'

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

    # Delegate to Commons::Client.new
    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

Version data entries

3 entries across 3 versions & 1 rubygems

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