Sha256: a623d63f06c314a722812b84a9451d75ec12700581b70b5d284a60fdad4c7390

Contents?: true

Size: 509 Bytes

Versions: 6667

Compression:

Stored size: 509 Bytes

Contents

module CodeRay
module Encoders
  
  load :token_kind_filter
  
  # A simple Filter that removes all tokens of the :comment kind.
  # 
  # Alias: +remove_comments+
  # 
  # Usage:
  #  CodeRay.scan('print # foo', :ruby).comment_filter.text
  #  #-> "print "
  # 
  # See also: TokenKindFilter, LinesOfCode
  class CommentFilter < TokenKindFilter
    
    register_for :comment_filter
    
    DEFAULT_OPTIONS = superclass::DEFAULT_OPTIONS.merge \
      :exclude => [:comment, :docstring]
    
  end
  
end
end

Version data entries

6,667 entries across 6,655 versions & 72 rubygems

Version Path
cybrid_api_id_ruby-0.123.3 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb
cybrid_api_id_ruby-0.123.2 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb
cybrid_api_bank_ruby-0.123.2 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb
cybrid_api_organization_ruby-0.123.2 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb
cybrid_api_bank_ruby-0.122.72 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb
cybrid_api_organization_ruby-0.122.72 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb
cybrid_api_id_ruby-0.122.72 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb
cybrid_api_bank_ruby-0.122.71 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb
cybrid_api_id_ruby-0.122.71 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb
cybrid_api_organization_ruby-0.122.71 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb
cybrid_api_bank_ruby-0.122.70 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb
cybrid_api_organization_ruby-0.122.70 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb
cybrid_api_id_ruby-0.122.70 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb
cybrid_api_bank_ruby-0.122.69 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb
cybrid_api_id_ruby-0.122.69 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb
cybrid_api_organization_ruby-0.122.69 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb
cybrid_api_organization_ruby-0.122.68 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb
cybrid_api_bank_ruby-0.122.68 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb
cybrid_api_id_ruby-0.122.68 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb
cybrid_api_bank_ruby-0.122.67 vendor/bundle/ruby/3.3.0/gems/coderay-1.1.3/lib/coderay/encoders/comment_filter.rb