class FoodCritic::Template::ExpressionExtractor
def lines_with_offsets(template_code)
def lines_with_offsets(template_code) line_offsets = [] template_code.scan(/$/) do |m| line_offsets << Regexp.last_match.offset(0).first end line_offsets.each_with_index.map { |pos, ln| [ln + 1, pos] } end