Class: YardJunk::Logger::Spellcheck::SpellChecker

Inherits:
Struct
  • Object
show all
Includes:
DidYouMean::SpellCheckable
Defined in:
lib/yard-junk/logger/spellcheck.rb

Overview

rubocop:disable Style/StructInheritance

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dictionaryObject

Returns the value of attribute dictionary

Returns:

  • (Object)

    the current value of dictionary



18
19
20
# File 'lib/yard-junk/logger/spellcheck.rb', line 18

def dictionary
  @dictionary
end

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



18
19
20
# File 'lib/yard-junk/logger/spellcheck.rb', line 18

def error
  @error
end

Instance Method Details

#candidatesObject



21
22
23
# File 'lib/yard-junk/logger/spellcheck.rb', line 21

def candidates
  {error => dictionary}
end