class Textoken::Only

This option object selects words in text via matching regexp regexp should be defined in option_values.yml

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/only.rb, line 12
def tokenize_condition
  tokenize_if { |word, regexp| word.match(regexp) }
end