<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -24,7 +24,7 @@ class Array
   # when the parser is cleaned up to never
   # create &quot;raw&quot; arrays
   def depth_first(*arg, &amp;block)
-    ret = yield(self) if arg.member?(self[0])
+    ret = yield(self) if arg.size == 0 || arg.member?(self[0])
     return :stop if ret == :stop
     return true if ret == :skip
 </diff>
      <filename>extensions.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7e58dc701a9c2214ffcf2546d7bec34121feb1b1</id>
    </parent>
  </parents>
  <author>
    <name>Vidar Hokstad</name>
    <email>vidar@hokstad.com</email>
  </author>
  <url>http://github.com/vidarh/writing-a-compiler-in-ruby/commit/912ec3bee8a5bf4358d6079aeca3051c18775ac8</url>
  <id>912ec3bee8a5bf4358d6079aeca3051c18775ac8</id>
  <committed-date>2009-05-08T06:57:25-07:00</committed-date>
  <authored-date>2009-05-08T06:57:25-07:00</authored-date>
  <message>Allow visit of all nodes when no specific node type is passed</message>
  <tree>d6ae96933471a9a3e4738910c7edf0ea71ee70cc</tree>
  <committer>
    <name>Vidar Hokstad</name>
    <email>vidar@hokstad.com</email>
  </committer>
</commit>
