ruby-changes:58048
From: Nobuyoshi <ko1@a...>
Date: Mon, 30 Sep 2019 17:40:07 +0900 (JST)
Subject: [ruby-changes:58048] 1722c156dd (master): Now `use_symbol` is always true
https://git.ruby-lang.org/ruby.git/commit/?id=1722c156dd From 1722c156dd45618cea712f017ca744d6f3b55be8 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 30 Sep 2019 17:35:29 +0900 Subject: Now `use_symbol` is always true diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index fe1df15..9b68b84 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -1174,7 +1174,7 @@ class TestMethod < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_method.rb#L1174 # chkbuild lists all methods. # The following code emulate this listing. - use_symbol = Object.instance_methods[0].is_a?(Symbol) + # use_symbol = Object.instance_methods[0].is_a?(Symbol) nummodule = nummethod = 0 mods = [] ObjectSpace.each_object(Module) {|m| mods << m if m.name } @@ -1191,7 +1191,7 @@ class TestMethod < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_method.rb#L1191 # puts line } ms = mod.instance_methods(false) - if use_symbol + if true or use_symbol ms << :initialize if mod.private_instance_methods(false).include? :initialize else ms << "initialize" if mod.private_instance_methods(false).include? "initialize" -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/