Sha256: d4e0f708ff14f04c17dc62a83d1a0d2e1593a9dfd5e1087d44977d937368fe28

Contents?: true

Size: 460 Bytes

Versions: 6995

Compression:

Stored size: 460 Bytes

Contents

module CodeRay
  module Scanners
    
    # Scanner for plain text.
    # 
    # Yields just one token of the kind :plain.
    # 
    # Alias: +plaintext+, +plain+
    class Text < Scanner
      
      register_for :text
      title 'Plain text'
      
      KINDS_NOT_LOC = [:plain]  # :nodoc:
      
    protected
      
      def scan_tokens encoder, options
        encoder.text_token string, :plain
        encoder
      end
      
    end
    
  end
end

Version data entries

6,995 entries across 6,982 versions & 75 rubygems

Version Path
coderay-1.1.0.rc3 lib/coderay/scanners/text.rb
coderay-1.1.0.rc2 lib/coderay/scanners/text.rb
coderay-1.1.0.rc1 lib/coderay/scanners/text.rb
sshp-0.0.2 vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/text.rb
sshp-0.0.1 vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/text.rb
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/text.rb
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/coderay-1.0.9/lib/coderay/scanners/text.rb
torquebox-console-0.2.5 vendor/bundle/jruby/1.9/gems/coderay-1.0.9/lib/coderay/scanners/text.rb
torquebox-console-0.2.4 vendor/bundle/jruby/1.9/gems/coderay-1.0.9/lib/coderay/scanners/text.rb
torquebox-console-0.2.3 vendor/bundle/jruby/1.9/gems/coderay-1.0.9/lib/coderay/scanners/text.rb
coderay-1.0.9 lib/coderay/scanners/text.rb
coderay-1.0.9.rc1 lib/coderay/scanners/text.rb
coderay-1.0.8 lib/coderay/scanners/text.rb
coderay-1.0.8.rc1 lib/coderay/scanners/text.rb
coderay-1.0.7 lib/coderay/scanners/text.rb
coderay-1.0.7.rc2 lib/coderay/scanners/text.rb
coderay-1.0.7.rc1 lib/coderay/scanners/text.rb
coderay-1.0.6 lib/coderay/scanners/text.rb
coderay-1.0.6.rc1 lib/coderay/scanners/text.rb
coderay-1.0.5 lib/coderay/scanners/text.rb