Loads a file, runs it through Erubis and parses it as YAML.
file<String> |
The name of the file to load. |
binding<Binding> |
The binding to use when evaluating the ERB tags. Defaults to the current binding. |
:api: private
# File lib/merb-core/gem_ext/erubis.rb, line 81 def self.load_yaml_file(file, binding = binding) YAML::load(Erubis::MEruby.new(IO.read(File.expand_path(file))).result(binding)) end
Generated with the Darkfish Rdoc Generator 2.