# File lib/nanoc/extra/core_ext/pathname.rb, line 7 def components components = [] tmp = self loop do old = tmp components << File.basename(tmp) tmp = File.dirname(tmp) break if old == tmp end components.reverse end