summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-30 06:45:32 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-30 06:45:32 +0000
commitc23f894d3096eee1a50e56662b04d5ba87874a21 (patch)
tree88ddc4a839da075921683d7a1f811d46bb07c1e2 /NEWS
parent4cf52d565bf614ab19393b3a5a8960ca8dd6105c (diff)
* proc.c (Init_Proc): add '===' operator to use procs in when
clause of the case statement. inspired by <http://www.aimred.com/news/developers/2008/08/14/unlocking_the_power_of_case_equality_proc/>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@21898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index dd93effc02..2a2873fc05 100644
--- a/NEWS
+++ b/NEWS
@@ -56,6 +56,10 @@ with all sufficient information, see the ChangeLog file.
Renamed from ENV.index.
+ * Proc#===
+
+ New method primarily for use in the case-when construct.
+
* Range#cover?
New alias to #include? for the forward compatibility with 1.9, in