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

Version Path
rdoc-6.8.1 lib/rdoc/erb_partial.rb
rdoc-6.8.0 lib/rdoc/erb_partial.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rdoc-6.7.0/lib/rdoc/erb_partial.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/rdoc-6.7.0/lib/rdoc/erb_partial.rb
rdoc-6.6.3.1 lib/rdoc/erb_partial.rb
rdoc-6.6.2 lib/rdoc/erb_partial.rb
rdoc-6.6.1 lib/rdoc/erb_partial.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/rdoc-6.6.0/lib/rdoc/erb_partial.rb
rdoc-6.6.0 lib/rdoc/erb_partial.rb