Class: Module
- Defined in:
- lib/eac_templates/patches/module/template.rb,
lib/eac_templates/patches/module/erb_template.rb
Instance Method Summary collapse
Instance Method Details
#erb_template(subpath, binding_obj) ⇒ Object
6 7 8 |
# File 'lib/eac_templates/patches/module/erb_template.rb', line 6 def erb_template(subpath, binding_obj) ::ERB.new(template.child(subpath).path.read).result(binding_obj) end |
#template ⇒ Object
7 8 9 |
# File 'lib/eac_templates/patches/module/template.rb', line 7 def template @template ||= ::EacTemplates::Searcher.default.template(name.underscore) end |