<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -8,7 +8,8 @@
 }}
 
 {{code:ruby
-    abs_path = File.expand_path('../to/foobar')
+    require 'pathname'
+    abs_path = Pathname.new('../to/foobar').realpath.to_s
     p abs_path
 
     #=&gt; &quot;/absolute/path/to/foobar&quot;</diff>
      <filename>filesystem/realpath.markdown</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>46ffdafae4ea816aeb4a8f37888c406b2ff709c1</id>
    </parent>
  </parents>
  <author>
    <name>Troels</name>
    <email>tkn@tkn-laptop.(none)</email>
  </author>
  <url>http://github.com/maintainable/php-ruby-reference/commit/16d1dc5c49922b9c585ead81fdbc8e98bf549df5</url>
  <id>16d1dc5c49922b9c585ead81fdbc8e98bf549df5</id>
  <committed-date>2009-07-12T05:23:12-07:00</committed-date>
  <authored-date>2009-07-12T04:50:47-07:00</authored-date>
  <message>File#expand_path doesn't resolve symlinks. Pathname#realpath does

Signed-off-by: Maintainable Software &lt;support@maintainable.com&gt;</message>
  <tree>caa7498a8ee98dc3b1dace3d7c55a6e44ebf99a4</tree>
  <committer>
    <name>Maintainable Software</name>
    <email>support@maintainable.com</email>
  </committer>
</commit>
