Class: Migrant::Util::TemplateRenderer
- Inherits:
-
Vagrant::Util::TemplateRenderer
- Object
- Vagrant::Util::TemplateRenderer
- Migrant::Util::TemplateRenderer
- Defined in:
- lib/migrant/util/template_renderer.rb
Instance Method Summary collapse
-
#full_template_path ⇒ String
Returns the full path to the template, taking into accoun the gem directory and adding the ‘.erb` extension to the end.
Instance Method Details
#full_template_path ⇒ String
Returns the full path to the template, taking into accoun the gem directory and adding the ‘.erb` extension to the end.
10 11 12 |
# File 'lib/migrant/util/template_renderer.rb', line 10 def full_template_path Migrant.source_root.join('templates', "#{template}.erb").to_s.squeeze("/") end |