method
scan_line
scan_line(line)
public
Hide source
# File lib/erb.rb, line 417 def scan_line(line) line.scan(/(.*?)(<%%|%%>|<%=|<%#|<%|%>|\n|\z)/) do |tokens| tokens.each do |token| next if token.empty? yield(token) end end end