From 4e6b4cce8007a3a174cc2a715ffd21a56edfddd4 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 21 Dec 2022 16:44:38 -0800 Subject: Add Data#with to examples in the NEWS [ci skip] --- NEWS.md | 1 + 1 file changed, 1 insertion(+) (limited to 'NEWS.md') 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') #=> # weight.amount #=> 50 weight.amount = 40 #=> NoMethodError: undefined method `amount=' + weight.with(amount: 40) #=> # ``` * Encoding -- cgit v1.2.3