Class: ActionView::Template::Handlers::ERB::Erubi
- Defined in:
- actionview/lib/action_view/template/handlers/erb/erubi.rb
Instance Method Summary collapse
-
#initialize(input, properties = {}) ⇒ Erubi
constructor
:nodoc: all.
Constructor Details
#initialize(input, properties = {}) ⇒ Erubi
:nodoc: all
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'actionview/lib/action_view/template/handlers/erb/erubi.rb', line 11 def initialize(input, properties = {}) @newline_pending = 0 # Dup properties so that we don't modify argument properties = Hash[properties] properties[:bufvar] ||= "@output_buffer" properties[:preamble] ||= "" properties[:postamble] ||= "#{properties[:bufvar]}" # Tell Eruby that whether template will be compiled with `frozen_string_literal: true` properties[:freeze_template_literals] = !Template.frozen_string_literal properties[:escapefunc] = "" super end |