Class: ERB::Compiler::SimpleScanner
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from Scanner
Instance Method Summary collapse
Methods inherited from Scanner
default_scanner=, #initialize, make_scanner, regist_scanner
Constructor Details
This class inherits a constructor from ERB::Compiler::Scanner
Instance Method Details
#scan ⇒ Object
494 495 496 497 498 499 500 501 |
# File 'lib/erb.rb', line 494 def scan @src.scan(/(.*?)(<%%|%%>|<%=|<%#|<%|%>|\n|\z)/m) do |tokens| tokens.each do |token| next if token.empty? yield(token) end end end |