instance method
DidYouMean::TreeSpellChecker#ideas_to_paths
ideas_to_paths(ideas, leaf, names, path)
lib/did_you_mean/tree_spell_checker.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/did_you_mean/tree_spell_checker.rb, line 83
def ideas_to_paths(ideas, leaf, names, path)
if ideas.empty?
nil
elsif names.include?(leaf)
["#{path}#{separator}#{leaf}"]
else
ideas.map {|str| "#{path}#{separator}#{str}" }
end
end
No documentation available
See also
#find_suggestions
#normalize
#find_leaves
#plausible_dimensions
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1