--- !ruby/object:RDoc::RI::ClassDescription 
attributes: []

class_methods: 
- !ruby/object:RDoc::RI::MethodSummary 
  name: getwd
- !ruby/object:RDoc::RI::MethodSummary 
  name: glob
- !ruby/object:RDoc::RI::MethodSummary 
  name: new
comment: 
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 2
  :text: Pathname
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: "Pathname represents a pathname which locates a file in a filesystem. The pathname depends on OS: Unix, Windows, etc. Pathname library works with pathnames of local OS. However non-Unix pathnames are supported experimentally."
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: It does not represent the file itself. A Pathname can be relative or absolute. It's not until you try to reference the file that it even matters whether the file exists or not.
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: Pathname is immutable. It has no method for destructive update.
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: The value of this class is to manipulate file path information in a neater way than standard Ruby provides. The examples below demonstrate the difference. <b>All</b> functionality from File, FileTest, and some from Dir and FileUtils is included, in an unsurprising way. It is essentially a facade for all of these, and more.
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 2
  :text: Examples
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 3
  :text: "Example 1: Using Pathname"
- !ruby/struct:RDoc::Markup::Flow::VERB 
  :body: "  require 'pathname'\n  p = Pathname.new(&quot;/usr/bin/ruby&quot;)\n  size = p.size              # 27662\n  isdir = p.directory?       # false\n  dir  = p.dirname           # Pathname:/usr/bin\n  base = p.basename          # Pathname:ruby\n  dir, base = p.split        # [Pathname:/usr/bin, Pathname:ruby]\n  data = p.read\n  p.open { |f| _ }\n  p.each_line { |line| _ }\n"
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 3
  :text: "Example 2: Using standard Ruby"
- !ruby/struct:RDoc::Markup::Flow::VERB 
  :body: "  p = &quot;/usr/bin/ruby&quot;\n  size = File.size(p)        # 27662\n  isdir = File.directory?(p) # false\n  dir  = File.dirname(p)     # &quot;/usr/bin&quot;\n  base = File.basename(p)    # &quot;ruby&quot;\n  dir, base = File.split(p)  # [&quot;/usr/bin&quot;, &quot;ruby&quot;]\n  data = File.read(p)\n  File.open(p) { |f| _ }\n  File.foreach(p) { |line| _ }\n"
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 3
  :text: "Example 3: Special features"
- !ruby/struct:RDoc::Markup::Flow::VERB 
  :body: "  p1 = Pathname.new(&quot;/usr/lib&quot;)   # Pathname:/usr/lib\n  p2 = p1 + &quot;ruby/1.8&quot;            # Pathname:/usr/lib/ruby/1.8\n  p3 = p1.parent                  # Pathname:/usr\n  p4 = p2.relative_path_from(p3)  # Pathname:lib/ruby/1.8\n  pwd = Pathname.pwd              # Pathname:/home/gavin\n  pwd.absolute?                   # true\n  p5 = Pathname.new &quot;.&quot;           # Pathname:.\n  p5 = p5 + &quot;music/../articles&quot;   # Pathname:music/../articles\n  p5.cleanpath                    # Pathname:articles\n  p5.realpath                     # Pathname:/home/gavin/articles\n  p5.children                     # [Pathname:/home/gavin/articles/linux, ...]\n"
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 2
  :text: Breakdown of functionality
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 3
  :text: Core methods
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: "These methods are effectively manipulating a String, because that's all a path is. Except for #mountpoint?, #children, and #realpath, they don't access the filesystem."
- !ruby/object:RDoc::Markup::Flow::LIST 
  contents: 
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: +
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#join"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#parent"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#root?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#absolute?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#relative?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#relative_path_from"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#each_filename"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#cleanpath"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#realpath"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#children"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#mountpoint?"
  type: :BULLET
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 3
  :text: File status predicate methods
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: "These methods are a facade for FileTest:"
- !ruby/object:RDoc::Markup::Flow::LIST 
  contents: 
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#blockdev?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#chardev?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#directory?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#executable?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#executable_real?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#exist?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#file?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#grpowned?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#owned?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#pipe?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#readable?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#world_readable?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#readable_real?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#setgid?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#setuid?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#size"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#size?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#socket?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#sticky?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#symlink?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#writable?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#world_writable?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#writable_real?"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#zero?"
  type: :BULLET
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 3
  :text: File property and manipulation methods
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: "These methods are a facade for File:"
- !ruby/object:RDoc::Markup::Flow::LIST 
  contents: 
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#atime"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#ctime"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#mtime"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#chmod(mode)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#lchmod(mode)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#chown(owner, group)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#lchown(owner, group)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#fnmatch(pattern, *args)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#fnmatch?(pattern, *args)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#ftype"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#make_link(old)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#open(*args, &amp;block)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#readlink"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#rename(to)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#stat"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#lstat"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#make_symlink(old)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#truncate(length)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#utime(atime, mtime)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#basename(*args)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#dirname"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#extname"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#expand_path(*args)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#split"
  type: :BULLET
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 3
  :text: Directory methods
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: "These methods are a facade for Dir:"
- !ruby/object:RDoc::Markup::Flow::LIST 
  contents: 
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: Pathname.glob(*args)
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: Pathname.getwd / Pathname.pwd
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#rmdir"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#entries"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#each_entry(&amp;block)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#mkdir(*args)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#opendir(*args)"
  type: :BULLET
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 3
  :text: IO
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: "These methods are a facade for IO:"
- !ruby/object:RDoc::Markup::Flow::LIST 
  contents: 
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#each_line(*args, &amp;block)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#read(*args)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#readlines(*args)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#sysopen(*args)"
  type: :BULLET
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 3
  :text: Utilities
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: "These methods are a mixture of Find, FileUtils, and others:"
- !ruby/object:RDoc::Markup::Flow::LIST 
  contents: 
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#find(&amp;block)"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#mkpath"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#rmtree"
  - !ruby/struct:RDoc::Markup::Flow::LI 
    :label: "-"
    :body: "#unlink / #delete"
  type: :BULLET
- !ruby/struct:RDoc::Markup::Flow::H 
  :level: 2
  :text: Method documentation
- !ruby/struct:RDoc::Markup::Flow::P 
  :body: As the above section shows, most of the methods in Pathname are facades. The documentation for these methods generally just says, for instance, &quot;See FileTest.writable?&quot;, as you should be familiar with the original method anyway, and its documentation (e.g. through <tt>ri</tt>) will contain more information. In some cases, a brief description will follow.
constants: 
- !ruby/object:RDoc::RI::Constant 
  comment: 
  name: SEPARATOR_LIST
  value: "\"#{Regexp.quote File::ALT_SEPARATOR}#{Regexp.quote File::SEPARATOR}\""
- !ruby/object:RDoc::RI::Constant 
  comment: 
  name: SEPARATOR_PAT
  value: /[#{SEPARATOR_LIST}]/
- !ruby/object:RDoc::RI::Constant 
  comment: 
  name: SEPARATOR_LIST
  value: "\"#{Regexp.quote File::SEPARATOR}\""
- !ruby/object:RDoc::RI::Constant 
  comment: 
  name: SEPARATOR_PAT
  value: /#{Regexp.quote File::SEPARATOR}/
full_name: Pathname
includes: []

instance_methods: 
- !ruby/object:RDoc::RI::MethodSummary 
  name: +
- !ruby/object:RDoc::RI::MethodSummary 
  name: <=>
- !ruby/object:RDoc::RI::MethodSummary 
  name: ==
- !ruby/object:RDoc::RI::MethodSummary 
  name: ===
- !ruby/object:RDoc::RI::MethodSummary 
  name: TO_PATH
- !ruby/object:RDoc::RI::MethodSummary 
  name: absolute?
- !ruby/object:RDoc::RI::MethodSummary 
  name: add_trailing_separator
- !ruby/object:RDoc::RI::MethodSummary 
  name: ascend
- !ruby/object:RDoc::RI::MethodSummary 
  name: atime
- !ruby/object:RDoc::RI::MethodSummary 
  name: basename
- !ruby/object:RDoc::RI::MethodSummary 
  name: blockdev?
- !ruby/object:RDoc::RI::MethodSummary 
  name: chardev?
- !ruby/object:RDoc::RI::MethodSummary 
  name: chdir
- !ruby/object:RDoc::RI::MethodSummary 
  name: children
- !ruby/object:RDoc::RI::MethodSummary 
  name: chmod
- !ruby/object:RDoc::RI::MethodSummary 
  name: chop_basename
- !ruby/object:RDoc::RI::MethodSummary 
  name: chown
- !ruby/object:RDoc::RI::MethodSummary 
  name: chroot
- !ruby/object:RDoc::RI::MethodSummary 
  name: cleanpath
- !ruby/object:RDoc::RI::MethodSummary 
  name: cleanpath_aggressive
- !ruby/object:RDoc::RI::MethodSummary 
  name: cleanpath_conservative
- !ruby/object:RDoc::RI::MethodSummary 
  name: ctime
- !ruby/object:RDoc::RI::MethodSummary 
  name: del_trailing_separator
- !ruby/object:RDoc::RI::MethodSummary 
  name: delete
- !ruby/object:RDoc::RI::MethodSummary 
  name: descend
- !ruby/object:RDoc::RI::MethodSummary 
  name: dir_foreach
- !ruby/object:RDoc::RI::MethodSummary 
  name: directory?
- !ruby/object:RDoc::RI::MethodSummary 
  name: dirname
- !ruby/object:RDoc::RI::MethodSummary 
  name: each_entry
- !ruby/object:RDoc::RI::MethodSummary 
  name: each_filename
- !ruby/object:RDoc::RI::MethodSummary 
  name: each_line
- !ruby/object:RDoc::RI::MethodSummary 
  name: entries
- !ruby/object:RDoc::RI::MethodSummary 
  name: eql?
- !ruby/object:RDoc::RI::MethodSummary 
  name: executable?
- !ruby/object:RDoc::RI::MethodSummary 
  name: executable_real?
- !ruby/object:RDoc::RI::MethodSummary 
  name: exist?
- !ruby/object:RDoc::RI::MethodSummary 
  name: expand_path
- !ruby/object:RDoc::RI::MethodSummary 
  name: extname
- !ruby/object:RDoc::RI::MethodSummary 
  name: file?
- !ruby/object:RDoc::RI::MethodSummary 
  name: find
- !ruby/object:RDoc::RI::MethodSummary 
  name: fnmatch
- !ruby/object:RDoc::RI::MethodSummary 
  name: fnmatch?
- !ruby/object:RDoc::RI::MethodSummary 
  name: foreach
- !ruby/object:RDoc::RI::MethodSummary 
  name: foreachline
- !ruby/object:RDoc::RI::MethodSummary 
  name: freeze
- !ruby/object:RDoc::RI::MethodSummary 
  name: ftype
- !ruby/object:RDoc::RI::MethodSummary 
  name: grpowned?
- !ruby/object:RDoc::RI::MethodSummary 
  name: has_trailing_separator?
- !ruby/object:RDoc::RI::MethodSummary 
  name: join
- !ruby/object:RDoc::RI::MethodSummary 
  name: lchmod
- !ruby/object:RDoc::RI::MethodSummary 
  name: lchown
- !ruby/object:RDoc::RI::MethodSummary 
  name: link
- !ruby/object:RDoc::RI::MethodSummary 
  name: lstat
- !ruby/object:RDoc::RI::MethodSummary 
  name: make_link
- !ruby/object:RDoc::RI::MethodSummary 
  name: make_symlink
- !ruby/object:RDoc::RI::MethodSummary 
  name: mkdir
- !ruby/object:RDoc::RI::MethodSummary 
  name: mkpath
- !ruby/object:RDoc::RI::MethodSummary 
  name: mountpoint?
- !ruby/object:RDoc::RI::MethodSummary 
  name: mtime
- !ruby/object:RDoc::RI::MethodSummary 
  name: open
- !ruby/object:RDoc::RI::MethodSummary 
  name: opendir
- !ruby/object:RDoc::RI::MethodSummary 
  name: owned?
- !ruby/object:RDoc::RI::MethodSummary 
  name: parent
- !ruby/object:RDoc::RI::MethodSummary 
  name: pipe?
- !ruby/object:RDoc::RI::MethodSummary 
  name: plus
- !ruby/object:RDoc::RI::MethodSummary 
  name: prepend_prefix
- !ruby/object:RDoc::RI::MethodSummary 
  name: read
- !ruby/object:RDoc::RI::MethodSummary 
  name: readable?
- !ruby/object:RDoc::RI::MethodSummary 
  name: readable_real?
- !ruby/object:RDoc::RI::MethodSummary 
  name: readlines
- !ruby/object:RDoc::RI::MethodSummary 
  name: readlink
- !ruby/object:RDoc::RI::MethodSummary 
  name: realpath
- !ruby/object:RDoc::RI::MethodSummary 
  name: realpath_rec
- !ruby/object:RDoc::RI::MethodSummary 
  name: relative?
- !ruby/object:RDoc::RI::MethodSummary 
  name: relative_path_from
- !ruby/object:RDoc::RI::MethodSummary 
  name: rename
- !ruby/object:RDoc::RI::MethodSummary 
  name: rmdir
- !ruby/object:RDoc::RI::MethodSummary 
  name: rmtree
- !ruby/object:RDoc::RI::MethodSummary 
  name: root?
- !ruby/object:RDoc::RI::MethodSummary 
  name: setgid?
- !ruby/object:RDoc::RI::MethodSummary 
  name: setuid?
- !ruby/object:RDoc::RI::MethodSummary 
  name: size
- !ruby/object:RDoc::RI::MethodSummary 
  name: size?
- !ruby/object:RDoc::RI::MethodSummary 
  name: socket?
- !ruby/object:RDoc::RI::MethodSummary 
  name: split
- !ruby/object:RDoc::RI::MethodSummary 
  name: split_names
- !ruby/object:RDoc::RI::MethodSummary 
  name: stat
- !ruby/object:RDoc::RI::MethodSummary 
  name: sticky?
- !ruby/object:RDoc::RI::MethodSummary 
  name: sub
- !ruby/object:RDoc::RI::MethodSummary 
  name: sub_ext
- !ruby/object:RDoc::RI::MethodSummary 
  name: symlink
- !ruby/object:RDoc::RI::MethodSummary 
  name: symlink?
- !ruby/object:RDoc::RI::MethodSummary 
  name: sysopen
- !ruby/object:RDoc::RI::MethodSummary 
  name: taint
- !ruby/object:RDoc::RI::MethodSummary 
  name: to_s
- !ruby/object:RDoc::RI::MethodSummary 
  name: truncate
- !ruby/object:RDoc::RI::MethodSummary 
  name: unlink
- !ruby/object:RDoc::RI::MethodSummary 
  name: untaint
- !ruby/object:RDoc::RI::MethodSummary 
  name: utime
- !ruby/object:RDoc::RI::MethodSummary 
  name: world_readable?
- !ruby/object:RDoc::RI::MethodSummary 
  name: world_writable?
- !ruby/object:RDoc::RI::MethodSummary 
  name: writable?
- !ruby/object:RDoc::RI::MethodSummary 
  name: writable_real?
- !ruby/object:RDoc::RI::MethodSummary 
  name: zero?
name: Pathname
superclass: Object
