Yaml persisted config
Ruby
Latest commit a09960f Nov 16, 2009 @softprops LICENSE and README
Permalink
Failed to load latest commit information.
lib
test
.gitignore
LICENSE
README.md
Rakefile
VERSION
deps.rip

README.md

Yami

Key-Value configuration from a yaml store

Install

Gemcutter

> sudo gem install yami

Usage

require 'yami'

# set path to persistent yaml store
Yami.file = File.join(
  File.dirname(__FILE__), *%w(path to config.yaml)
)

# read
Yami[:option] #=> value

# read with default
Yami[:flavor, "banana"]

# write
Yami[:shuttle] = {
  :speed => :fast
}

# fin.

2009 doug tangren (softprops)