Flowdock
method

relative_path_from

Importance_0
v2_1_10 - Show latest stable - 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 138
  def relative_path_from dest, base # :nodoc:
    dest = File.expand_path(dest)
    base = File.expand_path(base)

    if dest.index(base) == 0
      return dest[base.size+1..-1]
    else
      dest
    end
  end
Register or log in to add new notes.