End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
DidYouMean::TreeSpellChecker#plausible_dimensions
plausible_dimensions(input)
lib/did_you_mean/tree_spell_checker.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/did_you_mean/tree_spell_checker.rb, line 47
def plausible_dimensions(input)
input.split(separator)[0..-2]
.map
.with_index { |element, index| correct_element(dimensions[index], element) if dimensions[index] }
.compact
end
No documentation available