class Rouge::Lexers::PlainText

Attributes

token[R]

Public Class Methods

new(*) click to toggle source
Calls superclass method Rouge::Lexer.new
# File lib/rouge/lexers/plain_text.rb, line 14
def initialize(*)
  super

  @token = token_option(:token) || Text
end

Public Instance Methods

stream_tokens(string) { |token, string| ... } click to toggle source
# File lib/rouge/lexers/plain_text.rb, line 20
def stream_tokens(string, &b)
  yield self.token, string
end