Methods
C
L
N
U
Attributes
[RW] content
[RW] links
Class Public methods
new(file_owner)
# File lib/fakefs/fake/file.rb, line 6
      def initialize(file_owner)
        @content = ""
        @links   = [file_owner]
      end
Instance Public methods
clone()
# File lib/fakefs/fake/file.rb, line 23
      def clone
        clone = super
        clone.content = content.dup
        clone
      end
link(file)
# File lib/fakefs/fake/file.rb, line 14
      def link(file)
        links << file unless links.include?(file)
        file.inode = self
      end
unlink(file)
# File lib/fakefs/fake/file.rb, line 19
      def unlink(file)
        links.delete(file)
      end