From: SASADA Koichi Date: 2013-08-16T15:00:59+09:00 Subject: [ruby-core:56638] Re: [ruby-trunk - Feature #8781] Use require_relative() instead of require() if possible (2013/08/16 14:21), Aaron Patterson wrote: > If you move the file, then all calls to `require_relative` in that file > must be changed. If you had just used `require`, the file can be moved > without changes. Which case? For example, there are files: foo.rb foo/bar/a.rb And foo.rb has "require 'foo/bar/a'". If you move foo/bar/a.rb to foo/bar/b.rb, then you need to rewrite to "require 'foo/bar/b'". If you move foo/bar/a.rb to foo/baz/a.rb, then you need to rewrite to "require 'foo/baz/a'". -- // SASADA Koichi at atdot dot net