module Diplomat
Top level namespace ensures all required libraries are included and initializes the gem configration.
Constants
- VERSION
Attributes
Public Class Methods
Source
# File lib/diplomat.rb, line 40 def configure self.configuration ||= Diplomat::Configuration.new yield(configuration) end
Build optional configuration by yielding a block to configure @yield [Diplomat::Configuration]
Source
# File lib/diplomat.rb, line 17 def require_libs(*libs) libs.each do |lib| require "#{lib_path}/#{lib}" end end
Internal: Requires internal Faraday libraries. @param *libs One or more relative String names to Faraday classes. @return [nil]
Also aliased as: require_lib
Private Class Methods
Source
# File lib/diplomat.rb, line 53 def method_missing(name, *args, &block) Diplomat::Kv.new.send(name, *args, &block) || super end
Send all other unknown commands to Diplomat::Kv
@deprecated Please use Diplomat::Kv
instead. @param name [Symbol] Method to send to Kv
@param *args List of arguments to send to Kv
@param &block block to send to Kv
@return [Object]
Calls superclass method
Source
# File lib/diplomat.rb, line 61 def respond_to_missing?(meth_id, with_private = false) access_method?(meth_id) || super end
Make ‘respond_to_missing?` fall back to super
@param meth_id [Symbol] the tested method @oaram with_private if private methods should be tested too
Calls superclass method