mruby-enum-lazy: standardize block parameter spacing

changed block spacing from method{ to method { for consistency.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-12-05 07:01:50 +09:00
parent 89237e9cf9
commit 0d4695a91c
+3 -3
View File
@@ -59,7 +59,7 @@ class Enumerator
def initialize(obj, &block)
super(){|yielder|
begin
obj.each{|x|
obj.each {|x|
if block
block.call(yielder, x)
else
@@ -293,7 +293,7 @@ class Enumerator
Lazy.new(self){|yielder, val|
ary = block.call(val)
# TODO: check ary is an Array
ary.each{|x|
ary.each {|x|
yielder << x
}
}
@@ -314,7 +314,7 @@ class Enumerator
def zip(*args, &block)
enums = [self] + args
Lazy.new(self){|yielder, val|
ary = enums.map{|e| e.next}
ary = enums.map {|e| e.next}
if block
yielder << block.call(ary)
else