Sha256: c15ad6e032efeb04aee1ad740a687e1f2905a3f65e935bb29632734c2d3917eb

Contents?: true

Size: 497 Bytes

Versions: 1

Compression:

Stored size: 497 Bytes

Contents

require 'dogecoin/client'

module DogeCoin
  class << self

    # Creates an alias for DogeCoin::Client.new
    def new
      @client ||= DogeCoin::Client.new
    end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dogecoin-0.0.1 lib/dogecoin.rb