Class: CodeRay::Scanners::Plaintext
- Includes:
- CodeRay::Streamable
- Defined in:
- lib/coderay/scanners/plaintext.rb
Constant Summary collapse
- KINDS_NOT_LOC =
[:plain]
Constants inherited from Scanner
Scanner::DEFAULT_OPTIONS, Scanner::ScanError
Instance Method Summary collapse
Methods inherited from Scanner
#column, #each, file_extension, #initialize, #line, #marshal_dump, #marshal_load, normify, #reset, streamable?, #streaming?, #string=, #tokenize, #tokens
Methods included from Plugin
#helper, #included, #plugin_host, #plugin_id, #register_for, #title
Constructor Details
This class inherits a constructor from CodeRay::Scanners::Scanner
Instance Method Details
#scan_tokens(tokens, options) ⇒ Object
13 14 15 16 |
# File 'lib/coderay/scanners/plaintext.rb', line 13 def scan_tokens tokens, text = (scan_until(/\z/) || '') tokens << [text, :plain] end |