Method: Erubis::PreprocessingEruby#initialize

Defined in:
lib/erubis/preprocessing.rb

#initialize(input, params = {}) ⇒ PreprocessingEruby

Returns a new instance of PreprocessingEruby.



17
18
19
20
21
22
# File 'lib/erubis/preprocessing.rb', line 17

def initialize(input, params={})
  params = params.dup
  params[:pattern] ||= '\[% %\]'    # use '[%= %]' instead of '<%= %>'
  #params[:escape] = true            # transport '[%= %]' and '[%== %]'
  super
end