[–] jtgeibel 13y ago ↗ I don't understand the following guideline:> Assign struct subclasses so that they can be re-opened. Right = Struct.new(:value) do def squared; value * value end end class Wrong < Struct.new(:value) def squared; value * value end end
1 comment
[ 3.6 ms ] story [ 22.4 ms ] thread> Assign struct subclasses so that they can be re-opened.