lib/fakefs/fake/symlink.rb
module FakeFS class FakeSymlink attr_accessor :name, :target alias_method :to_s, :name def initialize(target) @target = target end def inspect "symlink(#{target.split('/').last})" end def entry FileSystem.find(target) end def method_missing(*args, &block) entry.send(*args, &block) end def respond_to?(method) entry.respond_to?(method) end end end