From f74114f0e19a41d8796a23efd637b86cbf2f5e0c Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 15 Jul 2026 13:38:55 +0900 Subject: [PATCH] Fix wrong receiver in eoutvar example for #src The example was updated to assign the ERB instance to `erb` instead of `template`, but the following line still called `template.src`. Since `template` is a String there, the example raises NoMethodError. Co-Authored-By: Claude Fable 5 --- lib/erb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/erb.rb b/lib/erb.rb index bde90de..fbd146e 100644 --- a/lib/erb.rb +++ b/lib/erb.rb @@ -889,7 +889,7 @@ def make_compiler(trim_mode) # # ``` # erb = ERB.new(template, eoutvar: '_foo') - # puts template.src.split('; ') + # puts erb.src.split('; ') # #coding:UTF-8 # _foo = +'' # _foo.<< "The time is ".freeze