module Utils
Public Instance Methods
TinyTemplate(str, context = nil)
click to toggle source
Call this method with or without context. If no context is passed, the context of the caller will be computed and passed to a new instance of the class TinyTemplate
# File lib/tiny_template.rb, line 58 def TinyTemplate(str, context = nil) unless context RubyVM::DebugInspector.open do |inspector| context = eval('self', inspector.frame_binding(2)) end end TinyTemplate.parse(str, context) end