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.rb |
Constant Summary
-
DEFAULT_ETAGS =
# File 'lib/erb.rb', line 370%w(%%> %>).freeze
-
DEFAULT_STAGS =
# File 'lib/erb.rb', line 369%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.rb', line 371
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.rb', line 360
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.rb', line 357
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.rb', line 378
attr_reader :, :
#stag (rw)
[ GitHub ]# File 'lib/erb.rb', line 377
attr_accessor :stag
#stags (readonly)
[ GitHub ]# File 'lib/erb.rb', line 378
attr_reader :, :
Instance Method Details
#scan
[ GitHub ]# File 'lib/erb.rb', line 380
def scan; end