Render a template on a new toplevel
binding with local variables specified by a Hash
object.
# File lib/erb.rb, line 881
def result_with_hash(hash)
b = new_toplevel(hash.keys)
hash.each_pair do |key, value|
b.local_variable_set(key, value)
end
result(b)
end