Installation¶
Requirements¶
- Ruby 2.7 or higher
- Bundler
Installing the Gem¶
Via Gemfile (Recommended)¶
Add this line to your application's Gemfile:
Then execute:
Direct Installation¶
From GitHub¶
To use the latest development version:
Rails Integration¶
For Rails applications, settingslogic will automatically integrate when added to your Gemfile.
- Create a configuration file at
config/application.yml
- Create a settings class that inherits from Settingslogic
- Access your settings throughout your application
See the Quick Start Guide for detailed examples.
Non-Rails Projects¶
Settingslogic works great with any Ruby project:
- Sinatra applications
- Ruby scripts
- Command-line tools
- Background job processors
Simply require the gem and create your settings class: