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
Copy file name to clipboardExpand all lines: _src/3.3.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,9 @@ description: Ruby 3.3 full and annotated changelog
54
54
55
55
### `Module#set_temporary_name`
56
56
57
-
***Reason:**
57
+
Allows to assign a string to be rendered as class/module's `#name`, without assigning the class/module to a constant.
58
+
59
+
***Reason:** The feature is useful to provide reasonable representation for dynamically auto-generated classes without assigning them to constants (which pollutes the global namespace and might conflict with existing constants) or redefining `Class#name` (which might break other code and not always respected in the output).
0 commit comments