Class: Config::Configuration

Inherits:
Module
  • Object
show all
Defined in:
lib/config/configuration.rb

Overview

The main configuration backbone

Instance Method Summary collapse

Constructor Details

#initialize(**attributes) ⇒ Configuration

Accepts configuration options, initializing a module that can be used to extend the necessary class with the provided config methods



7
8
9
10
11
12
# File 'lib/config/configuration.rb', line 7

def initialize(**attributes)
  attributes.each do |name, default|
    define_reader(name, default)
    define_writer(name)
  end
end