class Textoken::Exclude
This option object excludes words in text via matching regexp Non-excluded words pushed to findings array
Private Instance Methods
tokenize_condition()
click to toggle source
base.text is raw tokens splitted with ' ' values are Regexps array to search base.findings, Findings
object for pushing matching tokens
# File lib/textoken/options/exclude.rb, line 12 def tokenize_condition tokenize_if { |word, regexp| !word.match(regexp) } end