Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
DidYouMean::TreeSpellChecker#tree_depth
tree_depth
lib/did_you_mean/tree_spell_checker.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/did_you_mean/tree_spell_checker.rb, line 29
def tree_depth
@tree_depth ||= dictionary_without_leaves.max { |a, b| a.size <=> b.size }.size
end
No documentation available