From 260741970074e1fc21a4bbabdee3e14e945f47d2 Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 11 Nov 2014 06:27:34 +0000 Subject: suppress warning: shadowing outer local variable - line git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- template/unicode_norm_gen.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'template/unicode_norm_gen.tmpl') diff --git a/template/unicode_norm_gen.tmpl b/template/unicode_norm_gen.tmpl index b8f9f963b3..6ba11b8464 100644 --- a/template/unicode_norm_gen.tmpl +++ b/template/unicode_norm_gen.tmpl @@ -73,7 +73,7 @@ composition_exclusions = vpath.open("#{InputDataDir}/CompositionExclusions.txt") 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 = {} -- cgit v1.2.3