Method: TypeProf::Core::StaticRead#destroy

Defined in:
lib/typeprof/core/env/static_read.rb

#destroy(genv) ⇒ Object



26
27
28
29
30
31
# File 'lib/typeprof/core/env/static_read.rb', line 26

def destroy(genv)
  @source_modules.each do |mod|
    mod.static_reads[@name].delete(self) || raise
  end
  @source_modules.clear
end