Skip to content
instance method

ERB#new_toplevel

new_toplevel(symbols) → new_binding

Returns a new binding based on TOPLEVEL_BINDING; used to create a default binding for a call to result.

See Default Binding.

Argument symbols is an array of symbols; each symbol symbol is defined as a new variable to hide and prevent it from overwriting a variable of the same name already defined within the binding.