class Textoken::LessThan
This option object picks words in text with less than length of the option value
Private Instance Methods
tokenize_condition()
click to toggle source
# File lib/textoken/options/less_than.rb, line 9 def tokenize_condition tokenize_if { |word| word.length < number } end
validate_option_value()
click to toggle source
# File lib/textoken/options/less_than.rb, line 13 def validate_option_value validate { |value| value > 1 } end