This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

relative_path_from

        # Pathname.relative_path_from

(from ruby core)
---
    relative_path_from(base_directory)

---

Returns a relative path from the given `base_directory` to the receiver.

If `self` is absolute, then `base_directory` must be absolute too.

If `self` is relative, then `base_directory` must be relative too.

This method doesn't access the filesystem.  It assumes no symlinks.

ArgumentError is raised when it cannot find a relative path.

Note that this method does not handle situations where the case
sensitivity of the filesystem in use differs from the operating system
default.



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.