https://github.com/jtrim/abyss
Ruby DSL for arbitrarily-deep configurations.
https://github.com/jtrim/abyss
Last synced: 6 months ago
JSON representation
Ruby DSL for arbitrarily-deep configurations.
- Host: GitHub
- URL: https://github.com/jtrim/abyss
- Owner: jtrim
- License: mit
- Created: 2012-05-11T21:27:25.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-06-01T19:51:29.000Z (over 13 years ago)
- Last Synced: 2025-02-17T04:27:43.736Z (9 months ago)
- Language: Ruby
- Size: 133 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Abyss
[](http://travis-ci.org/jtrim/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
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request