Class Erubis::Engine
In: lib/erubis/engine.rb
Parent: Object

(abstract) abstract engine class. subclass must include evaluator and converter module.

Methods

convert!   load_file   new   process   process_proc  

Public Class methods

load file, write cache file, and return engine object. this method create code cache file automatically. cachefile name can be specified with properties[:cachename], or filname + ‘cache’ is used as default.

Public Instance methods

convert input string and set it to @src

helper method to convert and evaluate input text with context object. context may be Binding, Hash, or Object.

helper method evaluate Proc object with contect object. context may be Binding, Hash, or Object.

[Validate]