From 5dff2194a21d43e8df49ba7f3146a72dc7eededc Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 29 Oct 2020 17:19:46 +0900 Subject: Use instance variable `@dir` instead of access method `dir`. --- lib/mruby/gem.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/mruby/gem.rb b/lib/mruby/gem.rb index 99e183f5e..74af6cfd5 100644 --- a/lib/mruby/gem.rb +++ b/lib/mruby/gem.rb @@ -63,9 +63,9 @@ module MRuby objfile(f.relative_path_from(@dir).to_s.pathmap("#{build_dir}/%X")) end - @test_rbfiles = Dir.glob("#{dir}/test/**/*.rb").sort - @test_objs = Dir.glob("#{dir}/test/*.{c,cpp,cxx,cc,m,asm,s,S}").map do |f| - objfile(f.relative_path_from(dir).to_s.pathmap("#{build_dir}/%X")) + @test_rbfiles = Dir.glob("#{@dir}/test/**/*.rb").sort + @test_objs = Dir.glob("#{@dir}/test/*.{c,cpp,cxx,cc,m,asm,s,S}").map do |f| + objfile(f.relative_path_from(@dir).to_s.pathmap("#{build_dir}/%X")) end @custom_test_init = !@test_objs.empty? @test_preload = nil # 'test/assert.rb' -- cgit v1.2.3