Answers for "frozen_string_literal ruby"

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