class AdLint::Ld::FunctionMapper
Attributes
map[R]
Public Class Methods
new()
click to toggle source
# File lib/adlint/ld/object.rb, line 303 def initialize @map = FunctionMap.new end
Public Instance Methods
execute(met_fpath)
click to toggle source
# File lib/adlint/ld/object.rb, line 309 def execute(met_fpath) sma_wd = Pathname.pwd CSV.foreach(met_fpath) do |csv_row| if rec = MetricRecord.of(csv_row, sma_wd) case when rec.version? sma_wd = Pathname.new(rec.exec_working_directory) when rec.function_definition? @map.add_function(Function.new(rec)) when rec.function_declaration? @map.add_function_declaration(FunctionDeclaration.new(rec)) end end end end