class FakeFS::FakeSymlink
Attributes
name[RW]
parent[RW]
target[RW]
Public Class Methods
new(target)
click to toggle source
# File lib/fakefs/fake/symlink.rb, line 5 def initialize(target) @target = target end
Public Instance Methods
delete()
click to toggle source
# File lib/fakefs/fake/symlink.rb, line 17 def delete parent.delete(self) end
entry()
click to toggle source
# File lib/fakefs/fake/symlink.rb, line 13 def entry FileSystem.find(target) end
inspect()
click to toggle source
# File lib/fakefs/fake/symlink.rb, line 9 def inspect "symlink(#{name} -> #{target.split('/').last})" end
respond_to?(method)
click to toggle source
# File lib/fakefs/fake/symlink.rb, line 25 def respond_to?(method) entry.respond_to?(method) end
to_s()
click to toggle source
# File lib/fakefs/fake/symlink.rb, line 21 def to_s File.join(parent.to_s, name) end
Private Instance Methods
method_missing(*args, &block)
click to toggle source
# File lib/fakefs/fake/symlink.rb, line 31 def method_missing(*args, &block) entry.send(*args, &block) end