[前][次][番号順一覧][スレッド一覧]

ruby-changes:36291

From: naruse <ko1@a...>
Date: Tue, 11 Nov 2014 15:27:42 +0900 (JST)
Subject: [ruby-changes:36291] naruse:r48372 (trunk): suppress warning: shadowing outer local variable - line

naruse	2014-11-11 15:27:34 +0900 (Tue, 11 Nov 2014)

  New Revision: 48372

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48372

  Log:
    suppress warning: shadowing outer local variable - line

  Modified files:
    trunk/template/unicode_norm_gen.tmpl
Index: template/unicode_norm_gen.tmpl
===================================================================
--- template/unicode_norm_gen.tmpl	(revision 48371)
+++ template/unicode_norm_gen.tmpl	(revision 48372)
@@ -73,7 +73,7 @@ composition_exclusions = vpath.open("#{I https://github.com/ruby/ruby/blob/trunk/template/unicode_norm_gen.tmpl#L73
     abort "No file version in #{f.path}: #{line}"
   (unicode_version ||= version) == version or
     abort "Unicode version of directory (#{unicode_version}) and file (#{version}) mismatch"
-  f.grep(/^[A-Z0-9]{4,5}/) {|line| line.hex}
+  f.grep(/^[A-Z0-9]{4,5}/, &:hex)
 }
 
 decomposition_table = {}

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]