summaryrefslogtreecommitdiff
path: root/ext/fiddle/win32/libffi-config.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-02-27 16:38:32 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-02-27 18:49:18 +0900
commitdb0a4c8923e0e084c7d757d132a83fc9c8431633 (patch)
tree1ea1f2e494962c6e8c024bd1a60719f305a40341 /ext/fiddle/win32/libffi-config.rb
parentd063ed12afcb56d919863d6efb4bfa92741c1555 (diff)
downloadruby-db0a4c8923e0e084c7d757d132a83fc9c8431633.tar.gz
Prefer to use File.foreach instead of IO.foreach
Diffstat (limited to 'ext/fiddle/win32/libffi-config.rb')
-rwxr-xr-xext/fiddle/win32/libffi-config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fiddle/win32/libffi-config.rb b/ext/fiddle/win32/libffi-config.rb
index 1a750334ef..8e8069a943 100755
--- a/ext/fiddle/win32/libffi-config.rb
+++ b/ext/fiddle/win32/libffi-config.rb
@@ -23,7 +23,7 @@ until ARGV.empty?
end
end
-IO.foreach("#{srcdir}/configure.ac") do |line|
+File.foreach("#{srcdir}/configure.ac") do |line|
if /^AC_INIT\((.*)\)/ =~ line
version = $1.split(/,\s*/)[1]
version.gsub!(/\A\[|\]\z/, '')