class Textoken::MoreThan

This option object picks words in text with more than length of the option value

Private Instance Methods

tokenize_condition() click to toggle source
# File lib/textoken/options/more_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/more_than.rb, line 13
def validate_option_value
  validate { |value| value >= 0 }
end