Object
identifies the elements close to element
# File did_you_mean/tree_spell_checker.rb, line 117 def initialize end
# File did_you_mean/tree_spell_checker.rb, line 120 def call(names, element) return names if names.size == 1 str = normalize element return [str] if names.include? str checker = ::DidYouMean::SpellChecker.new(dictionary: names) checker.correct(str) end
This page was generated for Ruby 2.7.6
Ruby-doc.org is a service of James Britt and Neurogami, an erratic source of art, music, and technology.
Generated with Ruby-doc Rdoc Generator 0.42.0.