Class: ERB::Compiler::Scanner
Do not use. This class is for internal use only.
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Inherits: | Object |
Defined in: | lib/erb/compiler.rb |
Constant Summary
-
DEFAULT_ETAGS =
# File 'lib/erb/compiler.rb', line 100%w(%%> %>).freeze
-
DEFAULT_STAGS =
# File 'lib/erb/compiler.rb', line 99%w(<%% <%= <%# <%).freeze
Class Attribute Summary
- .default_scanner=(klass) writeonly
Class Method Summary
- .make_scanner(src, trim_mode, percent)
- .new(src, trim_mode, percent) ⇒ Scanner constructor
-
.regist_scanner(klass, trim_mode, percent)
Alias for .register_scanner.
- .register_scanner(klass, trim_mode, percent) (also: .regist_scanner)
Instance Attribute Summary
Instance Method Summary
Constructor Details
.new(src, trim_mode, percent) ⇒ Scanner
# File 'lib/erb/compiler.rb', line 101
def initialize(src, trim_mode, percent) @src = src @stag = nil @stags = DEFAULT_STAGS @etags = DEFAULT_ETAGS end
Class Attribute Details
.default_scanner=(klass) (writeonly)
[ GitHub ]# File 'lib/erb/compiler.rb', line 90
def self.default_scanner=(klass) @default_scanner = klass end
Class Method Details
.make_scanner(src, trim_mode, percent)
[ GitHub ].regist_scanner(klass, trim_mode, percent)
Alias for .register_scanner.
# File 'lib/erb/compiler.rb', line 87
alias :regist_scanner :register_scanner
.register_scanner(klass, trim_mode, percent) Also known as: .regist_scanner
[ GitHub ]Instance Attribute Details
#etags (readonly)
[ GitHub ]# File 'lib/erb/compiler.rb', line 108
attr_reader :, :
#stag (rw)
[ GitHub ]# File 'lib/erb/compiler.rb', line 107
attr_accessor :stag
#stags (readonly)
[ GitHub ]# File 'lib/erb/compiler.rb', line 108
attr_reader :, :
Instance Method Details
#scan
[ GitHub ]# File 'lib/erb/compiler.rb', line 110
def scan; end