Flowdock
method

inline_scan

Importance_0
v1_8_7_72 - Show latest stable - 0 notes - Class: ERB::Compiler::PercentScanner
inline_scan(line) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/erb.rb, line 450
        def inline_scan(line)
          stag_reg = /(.*?)(<%%|<%=|<%#|<%|\z)/m
          etag_reg = /(.*?)(%%>|%>|\z)/m
          scanner = StringScanner.new(line)
          while ! scanner.eos?
            scanner.scan(@stag ? etag_reg : stag_reg)
            yield(scanner[1])
            yield(scanner[2])
          end
        end
Register or log in to add new notes.