softprops / yami

Yaml persisted config

This URL has Read+Write access

softprops (author)
Sun Nov 15 20:34:45 -0800 2009
commit  a09960fdd960e74eae149e1b33e9f9b1e3edfc47
tree    aafc37302bd266f66fbc596117db21c0c386f683
parent  fd47678cac238ce97bebad9298b87791d00e169a
yami /
name age message
file .gitignore Loading commit data...
file LICENSE
file README.md
file Rakefile
file VERSION
file deps.rip
directory lib/
directory test/
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)