Class: ActionView::TemplateHandlers::ERB

Inherits:
ActionView::TemplateHandler show all
Defined in:
lib/action_view/template_handlers/erb.rb

Instance Method Summary collapse

Methods inherited from ActionView::TemplateHandler

#initialize, line_offset, #render

Constructor Details

This class inherits a constructor from ActionView::TemplateHandler

Instance Method Details

#compile(template) ⇒ Object



16
17
18
# File 'lib/action_view/template_handlers/erb.rb', line 16

def compile(template)
  ::ERB.new(template, nil, @view.erb_trim_mode).src
end