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