ERB::Compiler::Scanner (Class)

In: libraries/erb.rb
Parent: Object

Methods

Constants

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

Attributes

stag  [RW] 

Public Class methods

[Source]

    # File libraries/erb.rb, line 32
32:       def self.default_scanner=(klass)
33:         @default_scanner = klass
34:       end

[Source]

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

[Source]

    # File libraries/erb.rb, line 41
41:       def initialize(src, trim_mode, percent)
42:         @src = src
43:         @stag = nil
44:       end

[Source]

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

Public Instance methods

[Source]

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

[Validate]