Answers for "ruby 2.7 is require frozen_string_literal"

2

frozen string literal ruby

# frozen_string_literal: true
class Foo
  # ...
end
Posted by: Guest on November-02-2020
0

ruby frozen_string_literal

# frozen_string_literal: true
"".frozen?
=> true
(+"").frozen?
=> false
"".dup.frozen?
=> false
Posted by: Guest on November-17-2020

Browse Popular Code Answers by Language