mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
[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:
parent
9581d6c898
commit
fdd8bdea81
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user