Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

ERB#result_with_hash

(::Hash[untyped, untyped]) -> ::String
result_with_hash(hash) → new_string

Returns the string result formed by processing ERB tags found in the stored string in self; see Augmented Binding.

See also result.

See also #result #run #new_toplevel #set_eoutvar also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0