Class: NumberHumanizer::Configuration

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

Instance Method Summary collapse

Constructor Details

#initialize(**attributes) ⇒ Configuration

Returns a new instance of Configuration.



3
4
5
6
7
8
# File 'lib/number_humanizer/configuration.rb', line 3

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