Class: Erubis::OptimizedEruby

Inherits:
Basic::Engine
  • Object
show all
Includes:
OptimizedGenerator, RubyEvaluator
Defined in:
lib/erubis/engine/optimized.rb

Overview

Eruby class which generates optimized ruby code

Direct Known Subclasses

OptimizedXmlEruby

Instance Attribute Summary

Attributes included from Generator

#escapefunc

Attributes included from Evaluator

#filename, #src

Instance Method Summary collapse

Methods included from OptimizedGenerator

#init_generator, supported_properties

Methods included from Generator

#add_expr_debug, #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

#init_converter(properties = {}) ⇒ Object



106
107
108
109
# File 'lib/erubis/engine/optimized.rb', line 106

def init_converter(properties={})
  @pi = 'rb'
  super(properties)
end