Class: ConfigType::Yaml

Inherits:
Object
  • Object
show all
Defined in:
lib/config_file/config_type.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extensionsObject



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.expand_path(file_name))
end