Sha256: 0bae7150a9f44ab98fc5c3f0eab854a40189764977f66169e276cb4ca20d21c3
Contents?: true
Size: 400 Bytes
Versions: 9
Compression:
Stored size: 400 Bytes
Contents
# frozen_string_literal: true ## # Allows an ERB template to be rendered in the context (binding) of an # existing ERB template evaluation. class RDoc::ERBPartial < ERB ## # Overrides +compiler+ startup to set the +eoutvar+ to an empty string only # if it isn't already set. def set_eoutvar compiler, eoutvar = '_erbout' super compiler.pre_cmd = ["#{eoutvar} ||= +''"] end end
Version data entries
9 entries across 9 versions & 4 rubygems