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
12 13 14 |
# File 'lib/config_file/config_type.rb', line 12 def self.extensions [".yaml"] end |
Instance Method Details
#read(file_name) ⇒ Object
16 17 18 |
# File 'lib/config_file/config_type.rb', line 16 def read file_name ::YAML.load_file(File.(file_name)) end |