vendor/bundle/ruby/2.5.0/gems/rake-13.0.1/lib/rake/file_list.rb
def each_dir_parent(dir)    # :nodoc:
      old_length = nil
      while dir != "." && dir.length != old_length
        yield(dir)
        old_length = dir.length
        dir = File.dirname(dir)
      end
    end
# Yield each file or directory component.
Yield each file or directory component.
Yield each file or directory component .
def each_dir_parent(dir)    
      old_length = nil
      while dir != "." && dir.length != old_length
        yield(dir)
        old_length = dir.length
        dir = File.dirname(dir)
      end
    end
def each_dir_parent ( dir ) old_length = nil while dir != "." && dir . length != old_length yield ( dir ) old_length = dir . length dir = File . dirname ( dir ) end end
Yield each file or directory component.
Yield each file or directory component .
# :nodoc:
dir