Class: Module
Instance Method Summary collapse
Instance Method Details
#erb_template(subpath, binding_obj) ⇒ Object
7 8 9 10 |
# File 'lib/ehbrs/patches/module/erb_template.rb', line 7 def erb_template(subpath, binding_obj) ::ERB.new(template.child(subpath).path.read) .result binding_obj.binding end |