lib/picky/interfaces/live_parameters.rb in picky-2.5.2 vs lib/picky/interfaces/live_parameters.rb in picky-2.6.0

- old
+ new

@@ -139,32 +139,32 @@ end # TODO Move to Interface object. # def querying_removes_characters - regexp = Internals::Tokenizers::Query.default.instance_variable_get :@removes_characters_regexp + regexp = Tokenizers::Query.default.instance_variable_get :@removes_characters_regexp regexp && regexp.source end def querying_removes_characters= new_value - Internals::Tokenizers::Query.default.instance_variable_set(:@removes_characters_regexp, %r{#{new_value}}) + Tokenizers::Query.default.instance_variable_set(:@removes_characters_regexp, %r{#{new_value}}) end def querying_stopwords - regexp = Internals::Tokenizers::Query.default.instance_variable_get :@remove_stopwords_regexp + regexp = Tokenizers::Query.default.instance_variable_get :@remove_stopwords_regexp regexp && regexp.source end def querying_stopwords= new_value - Internals::Tokenizers::Query.default.instance_variable_set(:@remove_stopwords_regexp, %r{#{new_value}}) + Tokenizers::Query.default.instance_variable_set(:@remove_stopwords_regexp, %r{#{new_value}}) end def querying_splits_text_on - splits = Internals::Tokenizers::Query.default.instance_variable_get :@splits_text_on + splits = Tokenizers::Query.default.instance_variable_get :@splits_text_on splits && splits.respond_to?(:source) ? splits.source : splits end def querying_splits_text_on= new_value - splits = Internals::Tokenizers::Query.default.instance_variable_get :@splits_text_on + splits = Tokenizers::Query.default.instance_variable_get :@splits_text_on if splits.respond_to?(:source) - Internals::Tokenizers::Query.default.instance_variable_set(:@splits_text_on, %r{#{new_value}}) + Tokenizers::Query.default.instance_variable_set(:@splits_text_on, %r{#{new_value}}) else - Internals::Tokenizers::Query.default.instance_variable_set(:@splits_text_on, new_value) + Tokenizers::Query.default.instance_variable_set(:@splits_text_on, new_value) end end # # \ No newline at end of file