Sha256: ba7c9ce631d63ddd84507454442f091c85f5d718ce08108c0389eb569be838e0
Contents?: true
Size: 516 Bytes
Versions: 3
Compression:
Stored size: 516 Bytes
Contents
require "singleton" require "weeter/configuration/client_app_config" require "weeter/configuration/twitter_config" module Weeter class Configuration include Singleton attr_accessor :log_path def twitter yield Configuration::TwitterConfig.instance if block_given? Configuration::TwitterConfig.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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
weeter-0.9.2 | lib/weeter/configuration.rb |
weeter-0.9.1 | lib/weeter/configuration.rb |
weeter-0.9.0 | lib/weeter/configuration.rb |