Flowdock

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_4_6) is shown here.

These similar methods exist in v2_5_5:

scan() 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 517
        def scan
          stag_reg = /(.*?)(#{stags.join('|')}|\z)/
          etag_reg = /(.*?)(#{etags.join('|')}|\z)/
          scanner = StringScanner.new(@src)
          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.