Sha256: 4ad29ae10aebcc2c08bb8e9fc435425df9cddee7dd7cc05bcd157f24e4f0bbbb
Contents?: true
Size: 716 Bytes
Versions: 5
Compression:
Stored size: 716 Bytes
Contents
module Capgun require 'capgun/config' require 'capgun/client' extend Config class << self extend Config # Alias for Capgun::Client.new # # @param [Hash] options options for the Capgun::Client # @return [Capgun::Client] def new(options={}) Capgun::Client.new(options) end # Delegate methods to Capgun::Client def method_missing(method, *args, &block) return super unless new.respond_to?(method) new.send(method, *args, &block) end # Corollary of #method_missing delegated to Capgun::Client def respond_to?(method, include_private=false) new.respond_to?(method, include_private) || super(method, include_private) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
capgun-0.2.0 | lib/capgun.rb |
capgun-0.1.2 | lib/capgun.rb |
capgun-0.1.1 | lib/capgun.rb |
capgun-0.1.0 | lib/capgun.rb |
capgun-0.0.3 | lib/capgun.rb |