Class: Rouge::Lexers::PlainText
- Inherits:
-
Rouge::Lexer
- Object
- Rouge::Lexer
- Rouge::Lexers::PlainText
- Defined in:
- lib/rouge/lexers/plain_text.rb
Constant Summary
Constants included from Token::Tokens
Token::Tokens::Num, Token::Tokens::Str
Instance Method Summary collapse
Methods inherited from Rouge::Lexer
aliases, all, analyze_text, assert_utf8!, #debug, default_options, demo, demo_file, desc, filenames, find, find_fancy, guess, guess_by_filename, guess_by_mimetype, guess_by_source, guesses, #initialize, lex, #lex, mimetypes, #option, #options, #reset!, tag, #tag, title
Methods included from Token::Tokens
Constructor Details
This class inherits a constructor from Rouge::Lexer
Instance Method Details
#stream_tokens(string) {|self.token, string| ... } ⇒ Object
20 21 22 |
# File 'lib/rouge/lexers/plain_text.rb', line 20 def stream_tokens(string, &b) yield self.token, string end |
#token ⇒ Object
16 17 18 |
# File 'lib/rouge/lexers/plain_text.rb', line 16 def token @token ||= Token[option :token] end |