class LittleWeasel::Preprocessors::PreprocessedWord
This class represents a word that has passed through Preprocessor::WordPreprocessor processing. Word preprocessors are used to preprocess a word before it is passed to any Filters::WordFilters, and before it is compared against the dictionary for validity.
Attributes
original_word[RW]
preprocessed[RW]
preprocessed_word[RW]
preprocessor[RW]
preprocessor_order[RW]
Public Class Methods
new(original_word:, preprocessed:, preprocessed_word:, preprocessor:, preprocessor_order:)
click to toggle source
# File lib/LittleWeasel/preprocessors/preprocessed_word.rb, line 13 def initialize(original_word:, preprocessed:, preprocessed_word:, preprocessor:, preprocessor_order:) self.original_word = original_word self.preprocessed_word = preprocessed_word self.preprocessed = preprocessed self.preprocessor = preprocessor self.preprocessor_order = preprocessor_order end
Public Instance Methods
preprocessed?()
click to toggle source
Returns true if the word was preprocessed; false, if the word was not preprocessed by this preprocessor.
# File lib/LittleWeasel/preprocessors/preprocessed_word.rb, line 23 def preprocessed? preprocessed end