mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix indentation in two Ruby files
This commit is contained in:
@@ -820,7 +820,7 @@ class Array
|
||||
return to_enum(:combination, n) unless block
|
||||
size = self.size
|
||||
if n == 0
|
||||
yield []
|
||||
yield []
|
||||
elsif n == 1
|
||||
i = 0
|
||||
while i<size
|
||||
|
||||
@@ -140,9 +140,9 @@ class Set
|
||||
end
|
||||
end
|
||||
|
||||
def disjoint?(set)
|
||||
!intersect?(set)
|
||||
end
|
||||
def disjoint?(set)
|
||||
!intersect?(set)
|
||||
end
|
||||
|
||||
def each(&block)
|
||||
return to_enum :each unless block_given?
|
||||
@@ -190,10 +190,10 @@ class Set
|
||||
end
|
||||
|
||||
def collect!
|
||||
return to_enum :collect! unless block_given?
|
||||
set = self.class.new
|
||||
each { |o| set << yield(o) }
|
||||
replace(set)
|
||||
return to_enum :collect! unless block_given?
|
||||
set = self.class.new
|
||||
each { |o| set << yield(o) }
|
||||
replace(set)
|
||||
end
|
||||
alias map! collect!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user