Class: Module
- Defined in:
- lib/eac_templates/patches/module/eac_template.rb,
lib/eac_templates/patches/module/erb_template.rb
Instance Method Summary collapse
Instance Method Details
#eac_template ⇒ EacTemplates::Modules::Base
5 6 7 |
# File 'lib/eac_templates/patches/module/eac_template.rb', line 5 def eac_template @eac_template ||= ::EacTemplates::Modules::Base.new(self) end |
#erb_template(subpath, binding_obj) ⇒ ERB
9 10 11 |
# File 'lib/eac_templates/patches/module/erb_template.rb', line 9 def erb_template(subpath, binding_obj) ::ERB.new(eac_template.child(subpath).path.read).result(binding_obj) end |