diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-29 17:19:46 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-29 22:52:29 +0900 |
| commit | 5dff2194a21d43e8df49ba7f3146a72dc7eededc (patch) | |
| tree | 4f207e8920bd63a63063066c68f53e778c52ca9b /lib | |
| parent | 78f716250858f18797e9f40024a753ee1c59ad49 (diff) | |
| download | mruby-5dff2194a21d43e8df49ba7f3146a72dc7eededc.tar.gz mruby-5dff2194a21d43e8df49ba7f3146a72dc7eededc.zip | |
Use instance variable `@dir` instead of access method `dir`.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/mruby/gem.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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' |
