Actions
Feature #19163
closedData object should be frozen
Status:
Closed
Assignee:
-
Target version:
-
Description
If we call initialize
(via send
), we can rewrite an existing Data
object.
d=Data.define(:a, :b).new(1,2)
p d #=> #<data a=1, b=2>
d.send(:initialize, {a:3,b:4})
p d #=> #<data a=3, b=4>
Should we freeze the Data
object after calling initialize
for the first time?
Matz.
Actions
Like0
Like0Like0Like0