# ERB::Compiler::Scanner (Class)

In: | erb.rb
Parent: | Object

## Methods

default_scanner= make_scanner new regist_scanner scan

## Constants

SplitRegexp | = | /(<%%)|(%%>)|(<%=)|(<%#)|(<%)|(%>)|(\n)/

## Attributes

stag | [RW] |

## Public Class methods

regist_scanner(klass, trim_mode, percent)

[Source]

    # File erb.rb, line 28
          def self.regist_scanner(klass, trim_mode, percent)
            @scanner_map[[trim_mode, percent]] = klass
          end

default_scanner=(klass)

[Source]

    # File erb.rb, line 32
          def self.default_scanner=(klass)
            @default_scanner = klass
          end

make_scanner(src, trim_mode, percent)

[Source]

    # File erb.rb, line 36
          def self.make_scanner(src, trim_mode, percent)
            klass = @scanner_map.fetch([trim_mode, percent], @default_scanner)
            klass.new(src, trim_mode, percent)
          end

new(src, trim_mode, percent)

[Source]

    # File erb.rb, line 41
          def initialize(src, trim_mode, percent)
            @src = src
            @stag = nil
          end

## Public Instance methods

scan()

[Source]

    # File erb.rb, line 47
          def scan; end

[Validate]