aboutsummaryrefslogtreecommitdiffstats
path: root/enc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-05 04:25:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-05 04:25:44 +0000
commit78be4478d176f9dc6f2e4fd8a5daa90173458568 (patch)
treeefee19ebee8620cf477872395f7c111dfd3b7f38 /enc
parent7841cb1ef1a786a9848742813cfde3591be511ae (diff)
downloadruby-78be4478d176f9dc6f2e4fd8a5daa90173458568.tar.gz
implement Array-specific #all?, #none?, #one?
Before this patch Array#all? was not implemented in Array class and alternatively Enumerable#all? was used, while #any? has its own method entry in Array class. Similarly, Array#none? and #one? also lacks its own implementation. This patch provides Array-specific implementations for above three methods to enable faster method lookup. [Fix GH-2041] From: Koji Onishi <fursich0@gmail.com> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc')
0 files changed, 0 insertions, 0 deletions