# File lib/puppet/type/file.rb, line 437 437: def pathbuilder 438: # We specifically need to call the method here, so it looks 439: # up our parent in the catalog graph. 440: if parent = parent() 441: # We only need to behave specially when our parent is also 442: # a file 443: if parent.is_a?(self.class) 444: # Remove the parent file name 445: list = parent.pathbuilder 446: list.pop # remove the parent's path info 447: return list << self.ref 448: else 449: return super 450: end 451: else 452: return [self.ref] 453: end 454: end