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, 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
Constructor Details
This class inherits a constructor from Rouge::Lexer
Instance Method Details
#stream_tokens(string) {|self.token, string| ... } ⇒ Object
16 17 18 |
# File 'lib/rouge/lexers/text.rb', line 16 def stream_tokens(string, &b) yield self.token, string end |
#token ⇒ Object
12 13 14 |
# File 'lib/rouge/lexers/text.rb', line 12 def token @token ||= Token[option :token] end |