Merge pull request #6153 from dearblue/gem-list

Make `MRuby::Gems::List#{each,<<}` method return `self`
This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-02-02 08:19:44 +09:00
committed by GitHub
+2
View File
@@ -372,6 +372,7 @@ module MRuby
def each(&b)
@ary.each(&b)
self
end
def [](name)
@@ -384,6 +385,7 @@ module MRuby
else
# GEM was already added to this list
end
self
end
def empty?