Skip to content

softprops/yami

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yami

Key-Value configuration from a yaml store

Install

> 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)

About

Yaml persisted config

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages