Flowdock
method

relative_path_from

Importance_0
Ruby latest stable (v2_5_5) - 0 notes - Class: Lockfile
relative_path_from(dest, base) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/request_set/lockfile.rb, line 151
  def relative_path_from dest, base # :nodoc:
    dest = File.expand_path(dest)
    base = File.expand_path(base)

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

      return '.' unless offset

      offset
    else
      dest
    end
  end
Register or log in to add new notes.