From 9cc9940c8a86c652dd011e29e879ffccdd8bc9d6 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 28 Feb 2023 13:46:25 +0900 Subject: [PATCH] Prefer to use File.readlines instead of IO.readlines --- lib/rdoc/rd/block_parser.ry | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rdoc/rd/block_parser.ry b/lib/rdoc/rd/block_parser.ry index a56a866593..d5322aaad2 100644 --- a/lib/rdoc/rd/block_parser.ry +++ b/lib/rdoc/rd/block_parser.ry @@ -572,7 +572,7 @@ def get_included(file) file_name = File.join dir, file if File.exist? file_name then - included = IO.readlines file_name + included = File.readlines file_name break end end