Sha256: 4fb5f05028d7d7c0cb2b238c3aab1088bcfc39fdcca377d0b8ecc473e8558c70
Contents?: true
Size: 430 Bytes
Versions: 1
Compression:
Stored size: 430 Bytes
Contents
module CanTango class Configuration class Adapters < Registry include Singleton def adapter name raise "Unknown adapter #{name}" if !available_adapters.include? name.to_sym require "cantango/adapter/#{name}" end def use *names names.each {|name| adapter name } end def available_adapters [:moneta, :compiler] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cantango-0.8.5.1 | lib/cantango/configuration/adapters.rb |