class LittleWeasel::Filters::EnUs::SingleCharacterWordFilter
This class represents a filter for single character words.
Public Class Methods
filter_match?(word)
click to toggle source
# File lib/LittleWeasel/filters/en_us/single_character_word_filter.rb, line 12 def filter_match?(word) return false unless word.is_a? String /^[aAI]{1}$/.match? word.to_s end