123456789_123456789_123456789_123456789_123456789_

Class: RDoc::ERBPartial

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ERB
Instance Chain:
self, ERB
Inherits: ERB
  • Object
Defined in: lib/rdoc/erb_partial.rb

Overview

Allows an ERB template to be rendered in the context (binding) of an existing ERB template evaluation.

Instance Method Summary

Instance Method Details

#set_eoutvar(compiler, eoutvar = '_erbout')

Overrides compiler startup to set the eoutvar to an empty string only if it isn't already set.

[ GitHub ]

  
# File 'lib/rdoc/erb_partial.rb', line 11

def set_eoutvar compiler, eoutvar = '_erbout'
  super

  compiler.pre_cmd = ["#{eoutvar} ||= ''"]
end