module Faraday::DependencyLoader
def dependency(lib = nil)
Executes a block which should try to require and reference dependent
def dependency(lib = nil) lib ? require(lib) : yield rescue LoadError, NameError => e self.load_error = e end
def inherited(subclass)
def inherited(subclass) super subclass.send(:load_error=, load_error) end
def loaded?
def loaded? load_error.nil? end
def new(*)
def new(*) ? ing dependency for #{self}: #{load_error.message}"