class FakeFS::FakeSymlink
Fake symlink class
def delete
def delete parent.delete(self) end
def entry
def entry FileSystem.find(File.expand_path(target.to_s, parent.to_s)) end
def initialize(target)
def initialize(target) @target = target end
def inspect
def inspect "symlink(#{name} -> #{target.split('/').last})" end
def method_missing(*args, &block)
def method_missing(*args, &block) entry.send(*args, &block) end
def respond_to_missing?(method, include_private = false)
def respond_to_missing?(method, include_private = false) entry.respond_to?(method, include_private) end
def to_s
def to_s File.join(parent.to_s, name) end