diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-05 04:25:44 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-05 04:25:44 +0000 |
commit | 78be4478d176f9dc6f2e4fd8a5daa90173458568 (patch) | |
tree | efee19ebee8620cf477872395f7c111dfd3b7f38 /enc/x_emoji.h | |
parent | 7841cb1ef1a786a9848742813cfde3591be511ae (diff) | |
download | ruby-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/x_emoji.h')
0 files changed, 0 insertions, 0 deletions