End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem::Ext::ExtConfBuilder.get_relative_path
get_relative_path(path, base)
lib/rubygems/ext/ext_conf_builder.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/ext/ext_conf_builder.rb, line 69
def self.get_relative_path(path, base)
path[0..base.length - 1] = "." if path.start_with?(base)
path
end
No documentation available