ConfigSL TOML Gem Version Coverage Status Code Checks

Adds TOML file support to ConfigSL, the simple, modular configuration DSL.

Installation

Add this line to your application's Gemfile:

gem 'configsl-toml', '~> 1.0'

And then execute:

bundle install

Or install it yourself as:

gem install configsl-toml

Usage

See the ConfigSL Usage documentation for information on how to use ConfigSL.

To add TOML support to your configuration class, require configsl-toml and register the file format:

require 'configsl'
require 'configsl-toml'

class MyConfig < ConfigSL::Config
    register_file_format :toml

    option :name, type: String, default: 'My App'
    # ...
end