Object
# File did_you_mean/spell_checkers/key_error_checker.rb, line 5 def initialize(key_error) @key = key_error.key @keys = key_error.receiver.keys end
# File did_you_mean/spell_checkers/key_error_checker.rb, line 10 def corrections @corrections ||= exact_matches.empty? ? SpellChecker.new(dictionary: @keys).correct(@key).map(&:inspect) : exact_matches end
This page was generated for Ruby 3.0.1
Ruby-doc.org is provided by James Britt and Neurogami. Hack your world. Feed your head. Live curious.
Generated with Ruby-doc Rdoc Generator 0.44.2.