Skip to content

Commit 449402d

Browse files
committed
Add Array#{all?, none?, one?}
1 parent 3378c66 commit 449402d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spec/tags/truffle/methods_tags.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
fails:Public methods on Array should include all?
2-
fails:Public methods on Array should include none?
3-
fails:Public methods on Array should include one?
41
fails:Public methods on File should include birthtime
52
fails:Public methods on File should not include inspect
63
fails:Public methods on File should not include stat

src/main/ruby/truffleruby/core/enumerable.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,4 +1030,7 @@ class Array
10301030
alias_method :drop_while, :drop_while
10311031
alias_method :take_while, :take_while
10321032
alias_method :sum, :sum
1033+
alias_method :all?, :all?
1034+
alias_method :none?, :none?
1035+
alias_method :one?, :one?
10331036
end

0 commit comments

Comments
 (0)