In Files

  • debug-1.4.0/lib/debug/source_repository.rb

Parent

Methods

DEBUGGER__::SourceRepository

Constants

SrcInfo

Public Class Methods

new() click to toggle source
 
               # File debug-1.4.0/lib/debug/source_repository.rb, line 8
def initialize
  @files = {} # filename => SrcInfo
end
            

Public Instance Methods

add(iseq, src) click to toggle source
 
               # File debug-1.4.0/lib/debug/source_repository.rb, line 12
def add iseq, src
  if (path = iseq.absolute_path) && File.exist?(path)
    add_path path
  elsif src
    add_iseq iseq, src
  end
end
            
all_iseq(iseq, rs = []) click to toggle source
 
               # File debug-1.4.0/lib/debug/source_repository.rb, line 20
def all_iseq iseq, rs = []
  rs << iseq
  iseq.each_child{|ci|
    all_iseq(ci, rs)
  }
  rs
end
            
There is an updated format of the API docs for this version here.