Class: Erubis::OptimizedXmlEruby

Inherits:
OptimizedEruby show all
Includes:
EscapeEnhancer
Defined in:
lib/erubis/engine/optimized.rb

Overview

XmlEruby class which generates optimized ruby code

Instance Attribute Summary

Attributes included from Generator

#escapefunc

Attributes included from Evaluator

#filename, #src

Instance Method Summary collapse

Methods included from EscapeEnhancer

#add_expr, desc

Methods inherited from OptimizedEruby

#init_converter

Methods included from OptimizedGenerator

#init_generator, supported_properties

Methods included from Generator

#add_expr_escaped, #add_expr_literal, #add_postamble, #add_preamble, #add_stmt, #add_text, #escape_text, #escaped_expr, #init_generator, supported_properties

Methods included from RubyEvaluator

#def_method, #evaluate, #result, supported_properties

Methods included from Evaluator

#evaluate, #init_evaluator, #result, supported_properties

Instance Method Details

#add_expr_debug(src, code) ⇒ Object



120
121
122
123
# File 'lib/erubis/engine/optimized.rb', line 120

def add_expr_debug(src, code)
  switch_to_stmt(src) if indicator == '===' && !@initialized
  super
end