summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS5
1 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 6be8737c4e..1433dee4d6 100644
--- a/NEWS
+++ b/NEWS
@@ -22,10 +22,13 @@ with all sufficient information, see the ChangeLog file.
* new method call syntax, `object.?foo', method #foo is called on
`object' if it is not nil.
- this is similar to `try!' in Active Support, except for:
+ this is similar to `try!' in Active Support, except:
* method name is syntactically required
obj.try! {} # valid
obj.? {} # syntax error
+ * arguments are evaluated only if a call is made:
+ obj.try!(:foo, bar()) # bar() is always evaluated
+ obj.?foo(bar()) # bar() is conditionally evaluated
* attribute assignment is valid
obj.?attr += 1