Module: Settings

Defined in:
lib/settings.rb

Defined Under Namespace

Classes: Hash

Constant Summary collapse

VERSION =
"0.0.4"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



6
7
8
# File 'lib/settings.rb', line 6

def self.extended(base)
  base.instance_variable_set "@_settings", Hash.new(File.join(Dir.pwd, "config", "settings.yml"), ENV["RACK_ENV"])
end

Instance Method Details

#setting(key) ⇒ Object



10
11
12
# File 'lib/settings.rb', line 10

def setting(key)
  @_settings[key]
end