diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-09-18 12:23:57 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-09-18 03:24:02 +0000 |
| commit | f37d42fc7b9e66463caa17506cfd47f8b4e47983 (patch) | |
| tree | 4947f6ec588716943203ca31b6a5d9715c3c333d | |
| parent | e6879401feba22e3657a231cbedc751998cb7176 (diff) | |
[ruby/erb] [DOC] Fix the description of #new_toplevel
(https://github.com/ruby/erb/pull/78)
https://github.com/ruby/erb/commit/de0f18579e
| -rw-r--r-- | lib/erb.rb | 5 |
1 files 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) |
