class FakeFS::FakeSymlink
Fake symlink class
Attributes
Public Class Methods
Source
# File lib/fakefs/fake/symlink.rb, line 8 def initialize(target) @target = target end
Public Instance Methods
Source
# File lib/fakefs/fake/symlink.rb, line 16 def entry FileSystem.find(File.expand_path(target.to_s, parent.to_s)) end
Source
# File lib/fakefs/fake/symlink.rb, line 12 def inspect "symlink(#{name} -> #{target.split('/').last})" end
Source
# File lib/fakefs/fake/symlink.rb, line 28 def respond_to_missing?(method, include_private = false) entry.respond_to?(method, include_private) end
Private Instance Methods
Source
# File lib/fakefs/fake/symlink.rb, line 34 def method_missing(*args, &block) entry.send(*args, &block) end