# File lib/fssm/tree.rb, line 34 def each(prefix=nil, &block) @children.each do |segment, node| cprefix = prefix ? FSSM::Pathname.for(prefix).join(segment) : FSSM::Pathname.for(segment) block.call([cprefix, node]) node.each(cprefix, &block) end end