diff options
Diffstat (limited to 'lib/rdoc/erbio.rb')
-rw-r--r-- | lib/rdoc/erbio.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/rdoc/erbio.rb b/lib/rdoc/erbio.rb index 42ce895fb3..2ebce9519f 100644 --- a/lib/rdoc/erbio.rb +++ b/lib/rdoc/erbio.rb @@ -21,7 +21,11 @@ class RDoc::ERBIO < ERB # Defaults +eoutvar+ to 'io', otherwise is identical to ERB's initialize def initialize str, safe_level = nil, trim_mode = nil, eoutvar = 'io' - super + if RUBY_VERSION >= '2.6' + super(str, trim_mode: trim_mode, eoutvar: eoutvar) + else + super + end end ## |