Sha256: 7408f1d9718e8c925a60594d16c6cd8d3ae8ec78442e2951cad893f347bc3a69

Contents?: true

Size: 516 Bytes

Versions: 14

Compression:

Stored size: 516 Bytes

Contents

require 'erb'

module Ruby3BackwardCompatibility
  module ERBCompatibility
    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
  end
end

ERB.prepend Ruby3BackwardCompatibility::ERBCompatibility

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ruby3-backward-compatibility-1.4.0 lib/ruby3_backward_compatibility/compatibility/erb.rb
ruby3-backward-compatibility-1.3.0 lib/ruby3_backward_compatibility/compatibility/erb.rb
ruby3-backward-compatibility-1.2.0 lib/ruby3_backward_compatibility/compatibility/erb.rb
ruby3-backward-compatibility-1.1.1 lib/ruby3_backward_compatibility/compatibility/erb.rb
ruby3-backward-compatibility-1.1.0 lib/ruby3_backward_compatibility/compatibility/erb.rb
ruby3-backward-compatibility-1.0.0 lib/ruby3_backward_compatibility/compatibility/erb.rb
ruby3-backward-compatibility-0.3.0 lib/ruby3_backward_compatibility/compatibility/erb.rb
ruby3-backward-compatibility-0.2.3 lib/ruby3_backward_compatibility/compatibility/erb.rb
ruby3-backward-compatibility-0.2.2 lib/ruby3_backward_compatibility/compatibility/erb.rb
ruby3-backward-compatibility-0.2.1 lib/ruby3_backward_compatibility/compatibility/erb.rb
ruby3-backward-compatibility-0.2.0 lib/ruby3_backward_compatibility/compatibility/erb.rb
ruby3-backward-compatibility-0.1.3 lib/ruby3_backward_compatibility/compatibility/erb.rb
ruby3-backward-compatibility-0.1.2 lib/ruby3_backward_compatibility/compatibility/erb.rb
ruby3-backward-compatibility-0.1.1 lib/ruby3_backward_compatibility/compatibility/erb.rb