Class: Erubis::Engine

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(filename, properties={})

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.

new(input=nil, properties={})

include Evaluator include Converter include Generator

### Public Instance methods

convert!(input)

convert input string and set it to @src

process(input, context=nil, filename=nil)

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

process_proc(proc_obj, context=nil, filename=nil)

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

[Validate]