summaryrefslogtreecommitdiff
path: root/NEWS.md
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-12-21 16:44:38 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2022-12-21 16:44:47 -0800
commit4e6b4cce8007a3a174cc2a715ffd21a56edfddd4 (patch)
tree6ca02340f49c4dae80624a614ebc2526faee9c38 /NEWS.md
parent99cee85775bc5656b942bf4e1b0568a8f40addcd (diff)
Add Data#with to examples in the NEWS [ci skip]
Diffstat (limited to 'NEWS.md')
-rw-r--r--NEWS.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/NEWS.md b/NEWS.md
index 4a38a502a8..f42bac364f 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -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