You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
Yes it does because backward compatibility (kind-of): The frozen_string_literal magic comment only applies to Ruby 2.3 and beyond (being default on Ruby 3), but this gem is still supported down from Ruby 2.0.
2a5f102
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @hsbt, I was wondering, after adding this magic comment here, do you still need to
freeze
all the other strings that are being frozen in this file?2a5f102
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it does because backward compatibility (kind-of): The
frozen_string_literal
magic comment only applies to Ruby 2.3 and beyond (being default on Ruby 3), but this gem is still supported down from Ruby 2.0.2a5f102
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome @esparta now I understand 👍
Thank you!
2a5f102
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're welcome