Project

General

Profile

« Previous | Next » 

Revision 9ca73892

Added by Masaya Tarui about 7 years ago

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