class FoodCritic::Template::ExpressionExtractor
def expression_offsets(template_code)
def expression_offsets(template_code) expr_offsets = [] template_code.scan(DEFAULT_REGEXP) do |m| expr_offsets << [Regexp.last_match.offset(0).first, m[1].strip] end expr_offsets end