Abyss
Ruby DSL for defining arbitrarily-deep configuration.
Installation
Add this line to your application's Gemfile:
gem 'abyss'
And then execute:
$ bundle
Or install it yourself as:
$ gem install abyss
Usage
Abyss.configure do
# An arbitrarily-named configuration group
#
rush do
# Define arbitrary properties
#
year_founded '1968'
members ["Geddy", "Alex", "Neil"]
end
end
# Accessing...
Abyss.configuration.rush.year_founded #=> "1968"
Abyss.configuration.rush.members #=> ["Geddy", "Alex", "Neil"]
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request