Sha256: 99be41593e14d4f7d3e897ae22b8251087b119e0045527e85eb1d9ce9dc5b170

Contents?: true

Size: 417 Bytes

Versions: 6

Compression:

Stored size: 417 Bytes

Contents

module Kernel
  
  # 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.
  def configatron(&block)
    if block_given?
      Configatron::Configuration.instance.configure(&block)
    else
      Configatron::Configuration.instance
    end
  end
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
configatron-1.0.1 lib/kernel.rb
configatron-1.2.0 lib/configatron/kernel.rb
configatron-1.2.1 lib/configatron/kernel.rb
configatron-1.2.2 lib/configatron/kernel.rb
configatron-1.0.0 lib/kernel.rb
configatron-1.1.0 lib/kernel.rb