Sha256: a623d63f06c314a722812b84a9451d75ec12700581b70b5d284a60fdad4c7390

Contents?: true

Size: 509 Bytes

Versions: 6949

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

Version Path
logstash-filter-base64-1.0.4 vendor/bundle/jruby/2.2.0/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
logstash-filter-base64-1.0.3 vendor/bundle/jruby/2.2.0/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
logstash-filter-delta-1.0.0 vendor/bundle/jruby/2.2.0/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
logstash-filter-base64-1.0.2 vendor/bundle/jruby/2.3.0/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
logstash-filter-base64-1.0.1 vendor/bundle/jruby/2.3.0/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
logstash-filter-base64-1.0.0 vendor/bundle/jruby/2.3.0/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
able-neo4j-1.0.0 vendor/bundle/jruby/1.9/gems/coderay-1.1.0/lib/coderay/encoders/comment_filter.rb
coderay-1.1.1 lib/coderay/encoders/comment_filter.rb
coderay-1.1.1.rc1 lib/coderay/encoders/comment_filter.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/coderay-1.1.0/lib/coderay/encoders/comment_filter.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/comment_filter.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/coderay-1.1.0/lib/coderay/encoders/comment_filter.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/logstash-codec-json-2.0.3/vendor/gems/coderay-1.1.0/lib/coderay/encoders/comment_filter.rb
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/coderay-1.1.0/lib/coderay/encoders/comment_filter.rb
logstash-codec-json-2.0.3 vendor/gems/coderay-1.1.0/lib/coderay/encoders/comment_filter.rb
logstash-input-beats-0.9.2 vendor/jruby/1.9/gems/coderay-1.1.0/lib/coderay/encoders/comment_filter.rb
logstash-input-beats-0.9.1 vendor/jruby/1.9/gems/coderay-1.1.0/lib/coderay/encoders/comment_filter.rb
mastermind_adeybee-0.1.4 vendor/bundle/ruby/2.2.0/gems/coderay-1.1.0/lib/coderay/encoders/comment_filter.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/coderay-1.1.0/lib/coderay/encoders/comment_filter.rb
mastermind_adeybee-0.1.3 vendor/bundle/ruby/2.2.0/gems/coderay-1.1.0/lib/coderay/encoders/comment_filter.rb