lib/yml_reader.rb in yml_reader-0.3 vs lib/yml_reader.rb in yml_reader-0.4
- old
+ new
@@ -1,6 +1,7 @@
require "yml_reader/version"
+require 'yaml'
module YmlReader
#
# Set the directory to use when reading yml files
@@ -21,9 +22,9 @@
#
# Loads the requested file. It will look for the file in the
# directory specified by a call to the yml_directory= method.
#
def load(filename)
- @yml = YAML.load(ERB.new(File.read("#{yml_directory}/#{filename}")).result)
+ @yml = ::YAML.load(ERB.new(File.read("#{yml_directory}/#{filename}")).result)
end
end