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