Class: Rouge::Lexers::Text
- Inherits:
-
Rouge::Lexer
- Object
- Rouge::Lexer
- Rouge::Lexers::Text
- Defined in:
- lib/rouge/lexers/text.rb
Instance Method Summary collapse
Methods inherited from Rouge::Lexer
aliases, analyze_text, #debug, default_options, filenames, find, #get_tokens, guess, guess_by_filename, guess_by_mimetype, guess_by_source, #initialize, lex, #lex, mimetypes, #option, #options, register, #reset!, tag
Constructor Details
This class inherits a constructor from Rouge::Lexer
Instance Method Details
#stream_tokens(stream) {|Token['Text'], stream.string| ... } ⇒ Object
8 9 10 |
# File 'lib/rouge/lexers/text.rb', line 8 def stream_tokens(stream, &b) yield Token['Text'], stream.string end |