instance method
ERB#result_with_hash
(::Hash[untyped, untyped]) -> ::String
result_with_hash(hash) → new_string
lib/erb.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/erb.rb, line 1026
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
Returns the string result formed by processing ERB tags found in the stored string in self; see Augmented Binding.
See also result.