diff options
author | Ulysse Buonomo <[email protected]> | 2022-02-10 03:31:06 +0100 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-02-12 15:06:06 +0900 |
commit | 5348a34504a67597e3a3ed98a3020dfd762241ad (patch) | |
tree | 7f9f69344798fa039d3f382974f92d26f3369aa3 /lib/rdoc/parser.rb | |
parent | 08137c5dd99354225874abc95280188738030794 (diff) |
[ruby/rdoc] Relative loading for easier development (https://github.com/ruby/rdoc/pull/821)
This patch makes sure we only load relative code. Hence when coding or
testing rdoc, we'll be sure to always be using the correct code.
Discussion started at https://github.com/ruby/rdoc/pull/817.
Signed-off-by: Ulysse Buonomo <[email protected]>
https://github.com/ruby/rdoc/commit/aa41bd48eb
Co-authored-by: Nobuyoshi Nakada <[email protected]>
Diffstat (limited to 'lib/rdoc/parser.rb')
-rw-r--r-- | lib/rdoc/parser.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rdoc/parser.rb b/lib/rdoc/parser.rb index 425bc48632..7006265b63 100644 --- a/lib/rdoc/parser.rb +++ b/lib/rdoc/parser.rb @@ -263,8 +263,8 @@ class RDoc::Parser @preprocess.options = @options end - autoload :RubyTools, 'rdoc/parser/ruby_tools' - autoload :Text, 'rdoc/parser/text' + autoload :RubyTools, "#{__dir__}/parser/ruby_tools" + autoload :Text, "#{__dir__}/parser/text" end |