Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dbackowski/simple_configurable
Simple configuration module for specifying the configuration attributes of a class using a very simple syntax.
https://github.com/dbackowski/simple_configurable
class-configuration configuration gem ruby
Last synced: about 2 months ago
JSON representation
Simple configuration module for specifying the configuration attributes of a class using a very simple syntax.
- Host: GitHub
- URL: https://github.com/dbackowski/simple_configurable
- Owner: dbackowski
- License: mit
- Created: 2017-08-21T10:05:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-23T08:35:09.000Z (over 7 years ago)
- Last Synced: 2024-12-08T11:48:22.642Z (2 months ago)
- Topics: class-configuration, configuration, gem, ruby
- Language: Ruby
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# SimpleConfigurable [](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
endTest.configure do |config|
config.enabled = true
config.email = '[email protected]'
endTest.config
=> #<#:0x00000001c5c870 @enabled=true, @email="[email protected]">
```## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).