From 15bf4a49337f1f26c2fd1a97b4b3f56cac92ee69 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 18 Sep 2025 12:02:29 +0900 Subject: [PATCH] [DOC] Fix the description of #new_toplevel --- lib/erb.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/erb.rb b/lib/erb.rb index d88cce9..e72fe95 100644 --- a/lib/erb.rb +++ b/lib/erb.rb @@ -999,8 +999,9 @@ def result_with_hash(hash) # See [Default Binding][default binding]. # # Argument `symbols` is an array of symbols; - # each symbol `symbol` is used to define (unless already defined) a variable in the binding - # whose name is `symbol` and whose value is `nil`. + # 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. # # [default binding]: rdoc-ref:ERB@Default+Binding def new_toplevel(vars = nil)