Module | Kernel |
In: |
lib/configatron/kernel.rb
|
If called without a block it will return the Configatron::Configuration instance. If called with a block then it will call the Configatron::Configatron configure method and yield up a Configatron::Store object.
# File lib/configatron/kernel.rb, line 6 6: def configatron(&block) 7: if block_given? 8: Configatron::Configuration.instance.configure(&block) 9: else 10: Configatron::Configuration.instance 11: end 12: end