Module: Ruby3BackwardCompatibility::ERBCompatibility

Defined in:
lib/ruby3_backward_compatibility/compatibility/erb.rb

Instance Method Summary collapse

Instance Method Details

#initialize(str, safe_level = NOT_GIVEN, legacy_trim_mode = NOT_GIVEN, legacy_eoutvar = NOT_GIVEN, trim_mode: nil, eoutvar: '_erbout') ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/ruby3_backward_compatibility/compatibility/erb.rb', line 5

def initialize(str, safe_level = NOT_GIVEN, legacy_trim_mode = NOT_GIVEN, legacy_eoutvar = NOT_GIVEN, trim_mode: nil, eoutvar: '_erbout')
  if legacy_trim_mode != NOT_GIVEN
    trim_mode = legacy_trim_mode
  end
  if legacy_eoutvar != NOT_GIVEN
    eoutvar = legacy_eoutvar
  end
  super(str, trim_mode: trim_mode, eoutvar: eoutvar)
end