Api::Config
A simple way to maintain configurations in a Ruby project using YAML file
Installation
Add this line to your application's Gemfile:
gem 'api-config'
And then execute:
$ bundle
Or install it yourself as:
$ gem install api-config
Usage
APIConfig.foo
APIConfig.bar.goo
Ruby 3.0.x
An issue with the ostruct
version shipped with Ruby does not allow Api::Conifg
to work propertly.
Until this is fixed in Ruby, please add to your Gemfile
gem 'ostruct', '0.4.0'
Contributing
- Fork it ( https://github.com/[my-github-username]/api-config/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request