Object
# File did_you_mean/spell_checkers/pattern_key_name_checker.rb, line 5 def initialize(no_matching_pattern_key_error) @key = no_matching_pattern_key_error.key @keys = no_matching_pattern_key_error.matchee.keys end
# File did_you_mean/spell_checkers/pattern_key_name_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.1.2
Ruby-doc.org is provided by James Britt and Neurogami. Maximum R+D.
Generated with Ruby-doc Rdoc Generator 0.42.0.