Sha256: e1bc399a1926a7c7522efc30dba82898a85320522a98e1020102b081853b95dc
Contents?: true
Size: 518 Bytes
Versions: 4
Compression:
Stored size: 518 Bytes
Contents
# encoding: utf-8 module Nanoc::Extra # @api private module PathnameExtensions def __nanoc_components components = [] tmp = self loop do old = tmp components << File.basename(tmp) tmp = File.dirname(tmp) break if old == tmp end components.reverse end def __nanoc_include_component?(component) __nanoc_components.include?(component) end end end # @api private class ::Pathname include ::Nanoc::Extra::PathnameExtensions end
Version data entries
4 entries across 4 versions & 1 rubygems