method
scan_line
v2_2_9 -
Show latest stable
- Class:
ERB::Compiler::TrimScanner
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