Class: CustomERB::Compiler::SimpleScanner

Inherits:
Scanner show all
Defined in:
lib/ontomde-core/customERB.rb

Overview

:nodoc:

Constant Summary

Constants inherited from Scanner

CustomERB::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 CustomERB::Compiler::Scanner

Instance Method Details

#scanObject



409
410
411
412
413
414
415
416
# File 'lib/ontomde-core/customERB.rb', line 409

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