method

scan

scan()
public

No documentation available.

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