Source: show | on GitHub
# File lib/fakefs/fake/file.rb, line 7 def initialize(file_owner) @content = "" @links = [file_owner] end
# File lib/fakefs/fake/file.rb, line 24 def clone clone = super clone.content = content.dup clone end
# File lib/fakefs/fake/file.rb, line 15 def link(file) links << file unless links.include?(file) file.inode = self end
# File lib/fakefs/fake/file.rb, line 20 def unlink(file) links.delete(file) end