Sha256: d4e0f708ff14f04c17dc62a83d1a0d2e1593a9dfd5e1087d44977d937368fe28

Contents?: true

Size: 460 Bytes

Versions: 6948

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,948 entries across 6,936 versions & 73 rubygems

Version Path
cybrid_api_organization_ruby-0.123.118 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb
cybrid_api_bank_ruby-0.123.117 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb
cybrid_api_id_ruby-0.123.117 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb
cybrid_api_organization_ruby-0.123.117 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb
cybrid_api_bank_ruby-0.123.116 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb
cybrid_api_organization_ruby-0.123.116 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb
cybrid_api_id_ruby-0.123.116 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb
cybrid_api_bank_ruby-0.123.115 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb
cybrid_api_id_ruby-0.123.115 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb
cybrid_api_organization_ruby-0.123.115 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb
ory-client-1.15.17 vendor/bundle/ruby/3.1.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb
cybrid_api_bank_ruby-0.123.114 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb
cybrid_api_organization_ruby-0.123.114 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb
cybrid_api_id_ruby-0.123.114 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb
cybrid_api_organization_ruby-0.123.113 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb
cybrid_api_bank_ruby-0.123.113 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb
cybrid_api_id_ruby-0.123.113 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb
cybrid_api_organization_ruby-0.123.112 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb
cybrid_api_bank_ruby-0.123.112 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/scanners/text.rb