You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lockfile.rb
    path of file: ./repos/truffleruby/lib/mri/rubygems/request_set
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
##
# Parses a gem.deps.rb.lock file and constructs 
    
  def relative_path_from(dest, base) # :nodoc:
    dest = File.expand_path(dest)
    base = File.expand_path(base)

    if dest.index(base) == 0
      offset = dest[base.size + 1..-1]

      return "." unless offset

      offset
    else
      dest
    end