Parent

Methods

Yell::Configuration

The Configuration can be used to setup Yell before initializing an instance.

Public Class Methods

load!( file ) click to toggle source
# File lib/yell/configuration.rb, line 11
def self.load!( file )
  yaml = YAML.load( ERB.new(File.read(file)).result )

  # in case we have ActiveSupport
  if defined?(ActiveSupport::HashWithIndifferentAccess)
    yaml = ActiveSupport::HashWithIndifferentAccess.new(yaml)
  end

  yaml[Yell.env] || {}
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.