Class: ConfigType::Yaml
- Inherits:
-
Object
- Object
- ConfigType::Yaml
- Defined in:
- lib/config_file/config_type.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extensions ⇒ Object
11 12 13 |
# File 'lib/config_file/config_type.rb', line 11 def self.extensions [".yaml"] end |
Instance Method Details
#read(file_name) ⇒ Object
15 16 17 |
# File 'lib/config_file/config_type.rb', line 15 def read file_name ::YAML.load_file(File.(file_name)) end |