Method: Confucious::ClassMethods#configure
- Defined in:
- lib/confucious.rb
#configure(opts = {}) {|mash| ... } ⇒ Object
This allows us to do cool things like set our own configuration in a block
Usage:
[Module].configure do
end
16 17 18 19 20 21 |
# File 'lib/confucious.rb', line 16 def configure(opts={}, &block) @config = nil # reset! mash = Hashie::Mash.new(opts) yield mash if block_given? Confucious::Config.defaults.merge!(mash) end |