Sha256: 58e932497436bd02e05128f2312bbef2bb74472c5d3e2fc784ea5011e5e3471d
Contents?: true
Size: 764 Bytes
Versions: 10
Compression:
Stored size: 764 Bytes
Contents
require "singleton" module Weeter class Configuration include Singleton attr_accessor :log_path autoload :ClientAppConfig, 'weeter/configuration/client_app_config' autoload :TwitterConfig, 'weeter/configuration/twitter_config' autoload :LimiterConfig, 'weeter/configuration/limiter_config' def twitter yield Configuration::TwitterConfig.instance if block_given? Configuration::TwitterConfig.instance end def limiter yield Configuration::LimiterConfig.instance if block_given? Configuration::LimiterConfig.instance end def client_app @client_app_config ||= Configuration::ClientAppConfig.new yield @client_app_config if block_given? @client_app_config end end end
Version data entries
10 entries across 10 versions & 1 rubygems