Sha256: a0b00273f5c254bb82d6b819a785b8f26d56c57e36bdbf8c106ebd5c12c59224
Contents?: true
Size: 251 Bytes
Versions: 5
Compression:
Stored size: 251 Bytes
Contents
require 'yaml' module DataMagic class Reader # # load a file from the config directory and parse into a hash # def load_file(filename) yml = YAML.load_file "#{::DataMagic::Config.yml_directory}/#{filename}" end end end
Version data entries
5 entries across 5 versions & 1 rubygems