From 0d4695a91c25cfe8afab04e78a1100fc13e2feab Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Fri, 5 Dec 2025 07:01:50 +0900 Subject: [PATCH] mruby-enum-lazy: standardize block parameter spacing changed block spacing from method{ to method { for consistency. Co-authored-by: Claude --- mrbgems/mruby-enum-lazy/mrblib/lazy.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mrbgems/mruby-enum-lazy/mrblib/lazy.rb b/mrbgems/mruby-enum-lazy/mrblib/lazy.rb index 7a49b10af..7506d7fc8 100644 --- a/mrbgems/mruby-enum-lazy/mrblib/lazy.rb +++ b/mrbgems/mruby-enum-lazy/mrblib/lazy.rb @@ -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