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