# File lib/facets/core/pathname/descend.rb, line 11 def descend() @path.scan(%r{[^/]*/?})[0...-1].inject('') do |path, dir| yield Pathname.new(path << dir) path end end