Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Configuration storage library for Ruby with metaprogramming magic.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
.travis.yml
Gemfile
Guardfile
LICENSE
README.md
Rakefile
configuratron.gemspec

README.md

Configuratron build status still maintained

Configuratron is a library for storing configuraion. Objects of this class can access internal storage with a hash-like interface or method access:

require 'configuratron'
c = Configuratron.new
c[:setting] = :value
c[:setting] # => :value
c.other_setting = :other_value
c.other_setting # => :other_value

Method-based access is done by method_missing, but on first access the missing method is defined.

Configurable module

The Configuratron::Configurable module can either be included in a class, or extend it. When included, it will define a config method in instances of that class; when extended, it will define a config method for this class.

The config method returns a memoized instance of Configuratron.

License

This project is released under the MIT license. See LICENSE for more details.

Something went wrong with that request. Please try again.