method

scan_line

scan_line(line)
public

No documentation available.

# 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