method
scan_line

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