From f37d42fc7b9e66463caa17506cfd47f8b4e47983 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 18 Sep 2025 12:23:57 +0900 Subject: [ruby/erb] [DOC] Fix the description of #new_toplevel (https://github.com/ruby/erb/pull/78) https://github.com/ruby/erb/commit/de0f18579e --- lib/erb.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/erb.rb b/lib/erb.rb index d88cce9f4b..e72fe95572 100644 --- a/lib/erb.rb +++ b/lib/erb.rb @@ -999,8 +999,9 @@ class ERB # 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) -- cgit v1.2.3