module AdLint::Postfilter::PathUtil
Public Class Methods
cma_msg_fpath_of(project_name, output_dpath = nil)
click to toggle source
# File lib/adlint/postfilter/path.rb, line 57 def cma_msg_fpath_of(project_name, output_dpath = nil) if output_dpath output_dpath.join(Pathname.new(project_name)).add_ext(".msg.csv") else Pathname.new(project_name).add_ext(".msg.csv") end end
i_fpath_of(src_fpath, strip_num, output_dpath = nil)
click to toggle source
# File lib/adlint/postfilter/path.rb, line 39 def i_fpath_of(src_fpath, strip_num, output_dpath = nil) if output_dpath output_dpath.join(src_fpath.strip(strip_num)).sub_ext(".i") else src_fpath.strip(strip_num).sub_ext(".i") end end
sma_msg_fpath_of(src_fpath, strip_num, output_dpath = nil)
click to toggle source
# File lib/adlint/postfilter/path.rb, line 48 def sma_msg_fpath_of(src_fpath, strip_num, output_dpath = nil) if output_dpath output_dpath.join(src_fpath.strip(strip_num)).add_ext(".msg.csv") else src_fpath.strip(strip_num).add_ext(".msg.csv") end end
Private Instance Methods
cma_msg_fpath_of(project_name, output_dpath = nil)
click to toggle source
# File lib/adlint/postfilter/path.rb, line 57 def cma_msg_fpath_of(project_name, output_dpath = nil) if output_dpath output_dpath.join(Pathname.new(project_name)).add_ext(".msg.csv") else Pathname.new(project_name).add_ext(".msg.csv") end end
i_fpath_of(src_fpath, strip_num, output_dpath = nil)
click to toggle source
# File lib/adlint/postfilter/path.rb, line 39 def i_fpath_of(src_fpath, strip_num, output_dpath = nil) if output_dpath output_dpath.join(src_fpath.strip(strip_num)).sub_ext(".i") else src_fpath.strip(strip_num).sub_ext(".i") end end
sma_msg_fpath_of(src_fpath, strip_num, output_dpath = nil)
click to toggle source
# File lib/adlint/postfilter/path.rb, line 48 def sma_msg_fpath_of(src_fpath, strip_num, output_dpath = nil) if output_dpath output_dpath.join(src_fpath.strip(strip_num)).add_ext(".msg.csv") else src_fpath.strip(strip_num).add_ext(".msg.csv") end end