Class: MiniSearch::RemovePunctuationFilter
- Inherits:
-
Object
- Object
- MiniSearch::RemovePunctuationFilter
- Defined in:
- lib/mini_search/remove_punctuation_filter.rb
Instance Method Summary collapse
Instance Method Details
#execute(tokens) ⇒ Object
5 6 7 8 9 |
# File 'lib/mini_search/remove_punctuation_filter.rb', line 5 def execute(tokens) tokens.map do |token| token.tr(',.!;:', '') end end |