[ruby/erb] Enable frozen_string_literal in all files

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

I was surprised to see erb show up when I was using memory_profiler on
my app. ERB::Compiler#compile has a blank string literal, and it
ended up allocating some 41532 blank strings for a relatively small surface
area.

https://github.com/ruby/erb/commit/b7e45c2bdc
This commit is contained in:
Josh Nichols 2023-08-21 21:41:06 -07:00 committed by git
parent 925ce3f4fb
commit 0955ca342e
3 changed files with 3 additions and 0 deletions

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
#--
# ERB::Compiler
#

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
#--
# ERB::DefMethod
#

View File

@ -1,3 +1,4 @@
# frozen_string_literal: true
#--
# ERB::Escape
#