class CodeRay::Scanners::Text

Scanner for plain text.

Yields just one token of the kind :plain.

Alias: plaintext, plain

Protected Instance Methods

scan_tokens(encoder, options) click to toggle source
# File lib/coderay/scanners/text.rb, line 18
def scan_tokens encoder, options
  encoder.text_token string, :plain
  encoder
end