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

to_path

        # File.to_path

(from ruby core)
---
    to_path()

---

Returns the pathname used to create *file* as a string. Does not
normalize the name.

The pathname may not point to the file corresponding to *file*. For
instance, the pathname becomes void when the file has been moved or
deleted.

This method raises IOError for a *file* created using
File::Constants::TMPFILE because they don't have a pathname.

    File.new("testfile").path               #=> "testfile"
    File.new("/tmp/../tmp/xxx", "w").path   #=> "/tmp/../tmp/xxx"


(This method is an alias for File#path.)

Returns the pathname used to create *file* as a string. Does not
normalize the name.

The pathname may not point to the file corresponding to *file*. For
instance, the pathname becomes void when the file has been moved or
deleted.

This method raises IOError for a *file* created using
File::Constants::TMPFILE because they don't have a pathname.

    File.new("testfile").path               #=> "testfile"
    File.new("/tmp/../tmp/xxx", "w").path   #=> "/tmp/../tmp/xxx"



      

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.