From ebc2ce62433146a555135ae146322a8378d994df Mon Sep 17 00:00:00 2001 From: Daisuke Aritomo Date: Mon, 15 Dec 2025 19:25:45 +0900 Subject: [PATCH] Freeze ERB::Compiler::TrimScanner::ERB_STAG For Ractor compatibility. --- lib/erb/compiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/erb/compiler.rb b/lib/erb/compiler.rb index 8a4d85c..6d70288 100644 --- a/lib/erb/compiler.rb +++ b/lib/erb/compiler.rb @@ -225,7 +225,7 @@ def explicit_trim_line(line) end end - ERB_STAG = %w(<%= <%# <%) + ERB_STAG = %w(<%= <%# <%).freeze def is_erb_stag?(s) ERB_STAG.member?(s) end