class ConfigType::Yaml

Public Class Methods

extensions() click to toggle source
# File lib/config_file/config_type.rb, line 12
def self.extensions
  [".yaml"]
end

Public Instance Methods

read(file_name) click to toggle source
# File lib/config_file/config_type.rb, line 16
def read file_name
  ::YAML.load_file(File.expand_path(file_name))
end