diff options
| author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-12-21 16:44:38 -0800 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-12-21 16:44:47 -0800 |
| commit | 4e6b4cce8007a3a174cc2a715ffd21a56edfddd4 (patch) | |
| tree | 6ca02340f49c4dae80624a614ebc2526faee9c38 | |
| parent | 99cee85775bc5656b942bf4e1b0568a8f40addcd (diff) | |
Add Data#with to examples in the NEWS [ci skip]
| -rw-r--r-- | NEWS.md | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -182,6 +182,7 @@ Note: We're only listing outstanding class updates. weight = Measure.new(amount: 50, unit: 'kg') #=> #<data Measure amount=50, unit="kg"> weight.amount #=> 50 weight.amount = 40 #=> NoMethodError: undefined method `amount=' + weight.with(amount: 40) #=> #<data Measure amount=40, unit="kg"> ``` * Encoding |
