Method: Nagoro::Template#result
- Defined in:
- lib/nagoro/template.rb
#result(options = {}) ⇒ Object
67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/nagoro/template.rb', line 67 def result( = {}) parse_option() unless .empty? if vars = @variables obj = eval('self', @binding) vars.each do |key, value| obj.instance_variable_set("@#{key}", value) end end eval(@compiled, @binding, @file, @line).strip end |