0.0
The project is in a healthy, maintained state
TOML support for ConfigSL.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.0
~> 3.0
 Project Readme

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