Class: Thor::Actions::Template
- Defined in:
- lib/thor/actions/template.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from Templater
#base, #destination, #given_destination, #relative_destination, #source
Instance Method Summary collapse
Methods inherited from Templater
#exists?, #identical?, #initialize, #invoke!, #revoke!
Constructor Details
This class inherits a constructor from Thor::Actions::Templater
Instance Method Details
#render ⇒ Object
29 30 31 32 33 34 |
# File 'lib/thor/actions/template.rb', line 29 def render @render ||= begin context = base.instance_eval('binding') ERB.new(::File.read(source), nil, '-').result(context) end end |