module SourceFile
Public Class Methods
analyze_variable_name(the_line, the_callee)
click to toggle source
# File lib/file_line.rb, line 37 def self.analyze_variable_name(the_line, the_callee) the_line.slice(0, the_line.rindex("."+the_callee.to_s)).strip() end
get_variable_name(location_str, the_callee)
click to toggle source
# File lib/file_line.rb, line 41 def self.get_variable_name(location_str, the_callee) the_line = FileLine.get(*split_file_name_and_no(location_str)) analyze_variable_name(the_line, the_callee) end
split_file_name_and_no(location_str)
click to toggle source
# File lib/file_line.rb, line 27 def self.split_file_name_and_no(location_str) source_infos = location_str.split(":") if source_infos.size == 4 # for windows path [source_infos[0]+":"+source_infos[1], source_infos[2].to_i] else [source_infos[0], source_infos[1].to_i] end end