Source: show | on GitHub
# File lib/fakefs/fake/file.rb, line 6 def initialize(file_owner) @content = "" @links = [file_owner] end
# File lib/fakefs/fake/file.rb, line 14 def link(file) links << file unless links.include?(file) file.inode = self end
# File lib/fakefs/fake/file.rb, line 19 def unlink(file) links.delete(file) end