Class: Insurance::Analyzer
- Inherits:
-
Object
- Object
- Insurance::Analyzer
- Defined in:
- lib/insurance/analyzer.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.filter(file) ⇒ Object
26 27 28 |
# File 'lib/insurance/analyzer.rb', line 26 def self.filter(file) file end |
.line_trace_func(event, file, line) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/insurance/analyzer.rb', line 14 def self.line_trace_func(event, file, line) # case event # when 'c-call', 'c-return' # return # end if (full_path = self.filter(file)) FILELIST[full_path] ||= SourceFile.new(full_path) FILELIST[full_path] << line end end |
.run(files) ⇒ Object
30 31 32 33 |
# File 'lib/insurance/analyzer.rb', line 30 def self.run(files) Insurance.set_trace_func self.method(:line_trace_func).to_proc files.each { |f| load f } end |