summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authortarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-05 19:06:08 +0000
committertarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-05 19:06:08 +0000
commit9ca738927293df1c7a2a1ed7e2d6cf89527b5438 (patch)
treeca0329dafd191b1b315e7f3e5f90926cfa916487 /NEWS
parent19dec2a19c25f4cfb2511c313fde969436437bd0 (diff)
range.c: Range#cover? accepts Range object. [Feature #14473]
* range.c (range_cover): add code for range argument. If the argument is a Range, check it is or is not covered by the reciver. If it can be treated as a sequence, this method treats it that way. * test/ruby/test_range.rb (class TestRange): add tests for this feature. This patch is written by Owen Stephens. thank you! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS1
1 files changed, 1 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index ba459f7fe4..99c18de19c 100644
--- a/NEWS
+++ b/NEWS
@@ -176,6 +176,7 @@ sufficient information, see the ChangeLog file or Redmine
* `Range#===` now uses `#cover?` instead of `#include?` method.
[Feature #14575]
+ * `Range#cover?` now accepts Range object. [Feature #14473]
* `RubyVM::AST`