# dry-configurable ![Join the chat at https://gitter.im/dryrb/chat](https://badges.gitter.im/Join%20Chat.svg) ![Gem Version](https://badge.fury.io/rb/dry-configurable.svg) ![Build Status](https://travis-ci.org/dryrb/dry-configurable.svg?branch=master) ![Inline docs](http://inch-ci.org/github/dryrb/dry-configurable.svg?branch=master&style=flat) ## Synopsis ```ruby class App extend Dry::Configurable # Pass a block for nested configuration (works to any depth) setting :database do # Can pass a default value setting :dsn, 'sqlite:memory' end # Defaults to nil if no default value is given setting :adapter end App.configure do |config| config.database.dsn = 'jdbc:sqlite:memory' end App.config.database.dsn # => 'jdbc:sqlite:memory' App.config.adapter # => nil ``` ## License See `LICENSE` file.