Class: ERB::Compiler::SimpleScanner

Inherits:
Scanner
  • Object
show all
Defined in:
lib/erb.rb

Overview

:nodoc:

Constant Summary

Constants inherited from Scanner

ERB::Compiler::Scanner::SplitRegexp

Instance Attribute Summary

Attributes inherited from Scanner

#stag

Instance Method Summary collapse

Methods inherited from Scanner

default_scanner=, #initialize, make_scanner, regist_scanner

Constructor Details

This class inherits a constructor from ERB::Compiler::Scanner

Instance Method Details

#scanObject



394
395
396
397
398
399
400
401
# File 'lib/erb.rb', line 394

def scan
  @src.each do |line|
    line.split(SplitRegexp).each do |token|
      next if token.empty?
      yield(token)
    end
  end
end