Module: Balloon::Configuration::ClassMethods
- Defined in:
- lib/balloon/configuration.rb
Instance Method Summary collapse
Instance Method Details
#configure {|_self| ... } ⇒ Object
65 |
# File 'lib/balloon/configuration.rb', line 65 def configure; yield self; end |
#setup(configure, env) ⇒ Object
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/balloon/configuration.rb', line 67 def setup(configure, env) conf = configure[env] conf = configure['defaults'] if conf.nil? Balloon.configure do |config| conf.each do | n, v | if !v.blank? || v ==true || v == false if v ==true || v == false class_eval <<-RUBY config.#{n} = #{v} RUBY else class_eval <<-RUBY config.#{n} = '#{v}' RUBY end end end end end |