Sha256: 0753a60afe3edb5ce130ac5545be3dc8698e680ae0b428e2eae998e8421950be
Contents?: true
Size: 884 Bytes
Versions: 24
Compression:
Stored size: 884 Bytes
Contents
require 'percy/client' module Percy def self.config @config ||= Percy::Config.new end def self.reset @config = nil @client = nil end # API client based on configured options. # # @return [Percy::Client] API client. def self.client @client = Percy::Client.new(config: config) if !defined?(@client) || !@client @client end # @private def self.respond_to_missing?(method_name, include_private = false) client.respond_to?(method_name, include_private) end if RUBY_VERSION >= '1.9' # @private def self.respond_to?(method_name, include_private = false) client.respond_to?(method_name, include_private) || super end if RUBY_VERSION < '1.9' def self.method_missing(method_name, *args, &block) return super if !client.respond_to?(method_name) client.send(method_name, *args, &block) end private :method_missing end
Version data entries
24 entries across 24 versions & 1 rubygems