1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/iconv/charset_alias.rb: pass block argument to outer local

variable.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-02-03 11:12:04 +00:00
parent 688ca71c13
commit e7d267c42a
3 changed files with 9 additions and 3 deletions

View file

@ -43,9 +43,9 @@ def charset_alias(config_charset, mapfile = nil)
end
src << " end" << "end"
if mapfile
open(mapfile, "wb") {|f| f.puts *src}
open(mapfile, "wb") {|f| f.puts(*src)}
else
puts *src
puts(*src)
end
end