# File lib/facets/core/pathname/ascend.rb, line 11
    def ascend(inclusive=false,&block) # :yield:
      cur_dir = self
      yield( cur_dir.cleanpath ) if inclusive
      until cur_dir.root? or cur_dir == Pathname.new(".")
        cur_dir = cur_dir.parent
        yield cur_dir
      end
    end