class FakeFS::FakeSymlink

Attributes

name[RW]
target[RW]
to_s[RW]

Public Class Methods

new(target) click to toggle source
# File lib/fakefs/fake/symlink.rb, line 6
def initialize(target)
  @target = target
end

Public Instance Methods

delete() click to toggle source
# File lib/fakefs/fake/symlink.rb, line 18
def delete
  parent.delete(self)
end
entry() click to toggle source
# File lib/fakefs/fake/symlink.rb, line 14
def entry
  FileSystem.find(target)
end
inspect() click to toggle source
# File lib/fakefs/fake/symlink.rb, line 10
def inspect
  "symlink(#{target.split('/').last})"
end
respond_to?(method) click to toggle source
# File lib/fakefs/fake/symlink.rb, line 22
def respond_to?(method)
  entry.respond_to?(method)
end

Private Instance Methods

method_missing(*args, &block) click to toggle source
# File lib/fakefs/fake/symlink.rb, line 28
def method_missing(*args, &block)
  entry.send(*args, &block)
end