Class: Mail2Matrix::Configuration
- Inherits:
-
Object
- Object
- Mail2Matrix::Configuration
- Extended by:
- Dry::Configurable
- Defined in:
- lib/mail2matrix/configuration.rb
Class Method Summary collapse
Class Method Details
.load_from(path) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/mail2matrix/configuration.rb', line 23 def self.load_from(path) ini = IniFile.load path.to_s ini.each do |section, k, v| config.public_send(section.to_sym).public_send(:"#{k}=", v) end end |