module Erubis
Public Class Methods
load_yaml_file(file, binding = binding)
click to toggle source
Loads a file, runs it through Erubis and parses it as YAML.
Parameters¶ ↑
- 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