Sha256: e69b3947649d7915ddca8bd22a608b57fb909adcc180d9095ba94469bfc96a69
Contents?: true
Size: 436 Bytes
Versions: 11
Compression:
Stored size: 436 Bytes
Contents
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
Version data entries
11 entries across 11 versions & 4 rubygems