softprops / yami
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
fd47678
commit fd47678cac238ce97bebad9298b87791d00e169a
tree c9fbf5064d84ff3c24d5e533f4e31a62a213f7fd
parent fb30cae366a8486cd376798a0c809d2d0462f2a1
tree c9fbf5064d84ff3c24d5e533f4e31a62a213f7fd
parent fb30cae366a8486cd376798a0c809d2d0462f2a1
yami /
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.

