Method: Nagoro::Scanner#run
- Defined in:
- lib/nagoro/scanner.rb
#run ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/nagoro/scanner.rb', line 40 def run if scan(DOCTYPE ); doctype(self[1]) elsif scan(INSTRUCTION_START); instruction(self[1]) elsif scan(COMMENT ); text(matched) elsif scan(TAG_END ); tag_end(self[1]) elsif scan(RUBY_INTERP_START); ruby_interp(matched) elsif scan(TAG_START ); tag_start(self[1]) elsif scan(TEXT ); text(matched) elsif scan(HASH_CHAR ); hash_char(matched) end end |