diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-30 06:45:32 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-30 06:45:32 +0000 |
commit | c23f894d3096eee1a50e56662b04d5ba87874a21 (patch) | |
tree | 88ddc4a839da075921683d7a1f811d46bb07c1e2 /NEWS | |
parent | 4cf52d565bf614ab19393b3a5a8960ca8dd6105c (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-- | NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |