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



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