# File lib/fakefs/fake/dir.rb, line 21 def clone(parent = nil) clone = Marshal.load(Marshal.dump(self)) clone.each do |key, value| value.parent = clone end clone.parent = parent if parent clone end
# File lib/fakefs/fake/dir.rb, line 40 def delete(node = self) if node == self parent.delete(self) else super(node.name) end end
Generated with the Darkfish Rdoc Generator 2.