Class: Confset::Configuration

Inherits:
Module
  • Object
show all
Defined in:
lib/confset/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



9
10
11
12
13
14
# File 'lib/confset/configuration.rb', line 9

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