No commit activity in last 3 years
No release in over 3 years
Simple configuration module for class.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
~> 10.0
~> 3.6.0
 Project Readme

SimpleConfigurable Build Status

Simple configuration module for specifying the configuration attributes of a class using a very simple syntax.

Installation

Add this line to your application's Gemfile:

gem 'simple_configurable'

And then execute:

$ bundle

Or install it yourself as:

$ gem install simple_configurable

Usage

class Test
  include SimpleConfigurable.with :enabled, :email
end

Test.configure do |config|
  config.enabled = true
  config.email = 'test@example.com'
end

Test.config
 => #<#<Class:0x00000001c80590>:0x00000001c5c870 @enabled=true, @email="test@example.com">

License

The gem is available as open source under the terms of the MIT License.