ruby-changes:58056
From: Koichi <ko1@a...>
Date: Tue, 1 Oct 2019 01:14:41 +0900 (JST)
Subject: [ruby-changes:58056] 671ca21254 (master): remove `unused var` warning
https://git.ruby-lang.org/ruby.git/commit/?id=671ca21254 From 671ca21254a60d967570c8c973f5f2f17beb4931 Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Tue, 1 Oct 2019 01:14:19 +0900 Subject: remove `unused var` warning diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index 021f618..1a1ac59 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -1183,6 +1183,7 @@ class TestMethod < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_method.rb#L1183 nummodule += 1 mc = mod.kind_of?(Class) ? "class" : "module" puts_line = "#{mc} #{mod.name} #{(mod.ancestors - [mod]).inspect}" + puts_line = puts_line # prevent unused var warning mod.singleton_methods(false).sort.each {|methname| nummethod += 1 meth = mod.method(methname) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/