Module: Gusteau::ERB
Instance Method Summary collapse
Instance Method Details
#read_erb(path) ⇒ Object
7 8 9 |
# File 'lib/gusteau/erb.rb', line 7 def read_erb(path) ::ERB.new(File.read(path)).result binding end |
#read_erb_yaml(path) ⇒ Object
11 12 13 |
# File 'lib/gusteau/erb.rb', line 11 def read_erb_yaml(path) YAML::load(read_erb path) end |