Project

General

Profile

Actions

Bug #15206

closed

require_relative in std_lib

Added by marcandre (Marc-Andre Lafortune) over 5 years ago. Updated over 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:89291]

Description

I noticed that there are some require for internal files in lib/. Ideally, they would be using require_relative instead. This is faster and more explicit.

Note: require_relative had a potential issue with symlinks that was fixed in 2.5, so libraries that might be loaded from earlier Ruby, like rubygems, can not yet be updated.

I've created a PR and would like to know if there are comments / objections / things I'm missing.


Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Feature #8781: Use require_relative() instead of require() if possibleClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0