class YARD::StubProxy

@private
Stubs marshal dumps and acts a delegate class for an object by path

def self._load(str) new(str) end

def self._load(str) new(str) end

def _dump(_depth) @path end

def _dump(_depth) @path end

def hash; @path.hash end

def hash; @path.hash end

def initialize(path, transient = false)

def initialize(path, transient = false)
  @path = path
  @transient = transient
end

def method_missing(meth, *args, &block)

def method_missing(meth, *args, &block)
  return true if meth == :respond_to? && args.first == :_dump
  @object = nil if @transient
  @object ||= Registry.at(@path)
  @object.send(meth, *args, &block)
rescue NoMethodError => e
  e.backtrace.delete_if {|l| l[0, FILELEN] == __FILE__ }
  raise
end