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