Module | Erubis::PrintEnabledEnhancer |
In: |
erubis/enhancer.rb
|
# File erubis/enhancer.rb, line 138 def evaluate(context=nil) _src = @src if context.is_a?(Hash) context.each do |key, val| instance_variable_set("@#{key}", val) end elsif context context.instance_variables.each do |name| instance_variable_set(name, context.instance_variable_get(name)) end end return instance_eval(_src, (@filename || '(erubis)')) end