Sha256: 29bb03dc238be48833a70437f338344c8e84ca8c731b22346b1059525d2d579b

Contents?: true

Size: 888 Bytes

Versions: 1

Compression:

Stored size: 888 Bytes

Contents

# SimpleConfigurable [![Build Status](https://travis-ci.org/dbackowski/simple_configurable.svg?branch=master)](https://travis-ci.org/dbackowski/simple_configurable)

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:

```ruby
gem 'simple_configurable'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install simple_configurable

## Usage


```ruby
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](http://opensource.org/licenses/MIT).

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple_configurable-1.0.0 README.md