mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix the previous commit
This commit is contained in:
parent
426ddbfff5
commit
b673e9a304
1 changed files with 1 additions and 1 deletions
|
@ -1409,7 +1409,7 @@ class TestMethod < Test::Unit::TestCase
|
|||
# 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
|
||||
|
|
Loading…
Add table
Reference in a new issue