README.adoc in pragmater-14.0.0 vs README.adoc in pragmater-14.1.0
- old
+ new
@@ -210,12 +210,12 @@
[source,ruby]
----
mutable = "test"
immutable = -mutable
-immutable.frozen? # true
-immutable.capitalize! # FrozenError
+immutable.frozen? # true
+immutable.capitalize! # FrozenError
----
You can also use the methods, shown above, for variable initialization. Example:
[source,ruby]
@@ -225,13 +225,15 @@
immutable.frozen? # true
mutable.frozen? # false
----
-💡 The use of `+String#-@+`, specifically, was http://bit.ly/2DGAjgG[enhanced in Ruby 2.5.0] to
+💡 Use of `+String#-@+` was link:https://bugs.ruby-lang.org/issues/13077[enhanced in Ruby 2.5.0] to
_deduplicate_ all instances of the same string thus reducing your memory footprint. This can be
valuable in situations where you are not using the frozen string comment and need to selectively
freeze strings.
+
+💡 Use of `+String#dup+` was link:https://github.com/ruby/ruby/pull/8952[significantly enhanced in Ruby 3.3.0] to be as performant as `pass:[String#+@]` so you can use `+String#dup+` instead of `pass:[String#+@]` since `+String#dup+` is easier to read.
=== Consistency
As an added bonus, this gem ensures pragmas for all analyzed files are formatted in a consistent
style. This means there is always a space after the octothorp (`#`). Here are multiple pragmas