Module: Configify::Config::ClassMethods
- Defined in:
- lib/configify/config.rb
Instance Method Summary collapse
Instance Method Details
#config ⇒ Object
20 21 22 |
# File 'lib/configify/config.rb', line 20 def config @@config ||= new end |
#configure(config_values = {}, &block) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/configify/config.rb', line 10 def configure(config_values = {}, &block) if block_given? yield(config) else config_values.each do |key, value| config.send("#{key}=", value) end end end |