Class | CodeRay::Encoders::CommentFilter |
In: |
lib/coderay/encoders/comment_filter.rb
|
Parent: | TokenKindFilter |
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
DEFAULT_OPTIONS | = | superclass::DEFAULT_OPTIONS.merge \ :exclude => [:comment, :docstring] |