Sha256: a623d63f06c314a722812b84a9451d75ec12700581b70b5d284a60fdad4c7390

Contents?: true

Size: 509 Bytes

Versions: 6995

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,995 entries across 6,982 versions & 75 rubygems

Version Path
lazy_record-0.2.1 vendor/bundle/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
lazy_record-0.2.0 vendor/bundle/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
lazy_record-0.1.9 vendor/bundle/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
lazy_record-0.1.8 vendor/bundle/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
lazy_record-0.1.7 vendor/bundle/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
lazy_record-0.1.6 vendor/bundle/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
lazy_record-0.1.4 vendor/bundle/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
tdiary-5.0.4 vendor/bundle/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
logstash-filter-zabbix-0.1.2 vendor/bundle/jruby/1.9/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
lazy_record-0.1.3 vendor/bundle/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
lazy_record-0.1.2 vendor/bundle/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
lazy_record-0.1.1 vendor/bundle/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
lazy_record-0.1.0 vendor/bundle/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
logstash-filter-zabbix-0.1.1 vendor/bundle/jruby/1.9/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
logstash-input-fifo-0.9.1 vendor/bundle/jruby/1.9/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
logstash-input-fifo-0.9.0 vendor/bundle/jruby/1.9/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
logstash-input-salesforce-3.0.0 vendor/jruby/1.9/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
abaci-0.3.0 vendor/bundle/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/coderay-1.1.1/lib/coderay/encoders/comment_filter.rb