class CodeRay::Encoders::CommentFilter
See also: TokenKindFilter, LinesOfCode
#-> “print ”
CodeRay.scan(‘print # foo’, :ruby).comment_filter.text
Usage:
Alias: remove_comments
A simple Filter that removes all tokens of the :comment kind.
See also: TokenKindFilter, LinesOfCode
#-> “print ”
CodeRay.scan(‘print # foo’, :ruby).comment_filter.text
Usage:
Alias: remove_comments
A simple Filter that removes all tokens of the :comment kind.