[ruby/erb] Freeze ERB::Compiler::TrimScanner::ERB_STAG

(https://github.com/ruby/erb/pull/100)

For Ractor compatibility.

https://github.com/ruby/erb/commit/43f0876595
This commit is contained in:
Daisuke Aritomo 2025-12-16 02:14:06 +09:00 committed by git
parent 9581d6c898
commit fdd8bdea81

View File

@ -225,7 +225,7 @@ class ERB::Compiler # :nodoc:
end
end
ERB_STAG = %w(<%= <%# <%)
ERB_STAG = %w(<%= <%# <%).freeze
def is_erb_stag?(s)
ERB_STAG.member?(s)
end