From 97d4d8f45b4fe83fea9a96887227667192060ff1 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sun, 7 Dec 2025 21:59:08 +0900 Subject: [PATCH] mruby-set: standardize block parameter spacing changed block spacing from { | to {| for consistency. Co-authored-by: Claude --- mrbgems/mruby-set/mrblib/set.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mrbgems/mruby-set/mrblib/set.rb b/mrbgems/mruby-set/mrblib/set.rb index 852ada63a..64a0f4c2c 100644 --- a/mrbgems/mruby-set/mrblib/set.rb +++ b/mrbgems/mruby-set/mrblib/set.rb @@ -43,7 +43,7 @@ class Set # set #=> # # def merge(enum) - __merge(enum) || __do_with_enum(enum) { |o| add(o) } + __merge(enum) || __do_with_enum(enum) {|o| add(o) } self end @@ -75,7 +75,7 @@ class Set # set #=> # # def subtract(enum) - __subtract(enum) || __do_with_enum(enum) { |o| delete(o) } + __subtract(enum) || __do_with_enum(enum) {|o| delete(o) } self end @@ -93,7 +93,7 @@ class Set def intersection(enum) __intersection(enum) || begin n = Set.new - __do_with_enum(enum) { |o| n.add(o) if include?(o) } + __do_with_enum(enum) {|o| n.add(o) if include?(o) } n end end @@ -136,7 +136,7 @@ class Set def difference(enum) __difference(enum) || begin result = dup - __do_with_enum(enum) { |o| result.delete(o) } + __do_with_enum(enum) {|o| result.delete(o) } result end end @@ -294,7 +294,7 @@ class Set def classify return to_enum(:classify) unless block_given? h = {} - each { |i| + each {|i| x = yield(i) (h[x] ||= self.class.new).add(i) }