lib/yml_reader.rb in yml_reader-0.2 vs lib/yml_reader.rb in yml_reader-0.3
- old
+ new
@@ -21,9 +21,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_file "#{yml_directory}/#{filename}"
+ @yml = YAML.load(ERB.new(File.read("#{yml_directory}/#{filename}")).result)
end
end