Class/Module Index [+]

Quicksearch

Nanoc::Extra::PathnameExtensions

Public Instance Methods

components() click to toggle source
# 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
include_component?(component) click to toggle source
# 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.