Class: BlendedConfig::Sources::File
- Inherits:
-
Object
- Object
- BlendedConfig::Sources::File
- Defined in:
- lib/blended_config/sources/file.rb
Class Method Summary collapse
Class Method Details
.new(options) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/blended_config/sources/file.rb', line 6 def self.new() path = Pathname.new([:toml]) extension = :toml send(extension, path) end |
.toml(path) ⇒ Object
13 14 15 |
# File 'lib/blended_config/sources/file.rb', line 13 def self.toml(path) TomlSource.new(path) end |