# File lib/nanoc/extra/core_ext/pathname.rb, line 6 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
# File lib/nanoc/extra/core_ext/pathname.rb, line 18 def include_component?(component) self.components.include?(component) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.