ruby-changes:70724
From: Yusuke <ko1@a...>
Date: Tue, 4 Jan 2022 17:52:29 +0900 (JST)
Subject: [ruby-changes:70724] b673e9a304 (master): Fix the previous commit
https://git.ruby-lang.org/ruby.git/commit/?id=b673e9a304 From b673e9a3040335b63cbf216e66b147f2b83828a9 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Tue, 4 Jan 2022 17:52:07 +0900 Subject: Fix the previous commit --- test/ruby/test_method.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index 8f68df7b245..c6a3414074c 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -1409,7 +1409,7 @@ class TestMethod < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_method.rb#L1409 # use_symbol = Object.instance_methods[0].is_a?(Symbol) nummodule = nummethod = 0 mods = [] - ObjectSpace.each_object(Module) {|m| mods << m if Symbol === m.name } + ObjectSpace.each_object(Module) {|m| mods << m if String === m.name } mods = mods.sort_by {|m| m.name } mods.each {|mod| nummodule += 1 -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/