Class: Spellchecker::Mistake

Inherits:
Struct
  • Object
show all
Defined in:
lib/spellchecker.rb

Instance Attribute Summary collapse

Instance Attribute Details

#contextObject

Returns the value of attribute context

Returns:

  • (Object)

    the current value of context



24
25
26
# File 'lib/spellchecker.rb', line 24

def context
  @context
end

#correctionObject

Returns the value of attribute correction

Returns:

  • (Object)

    the current value of correction



24
25
26
# File 'lib/spellchecker.rb', line 24

def correction
  @correction
end

#positionObject

Returns the value of attribute position

Returns:

  • (Object)

    the current value of position



24
25
26
# File 'lib/spellchecker.rb', line 24

def position
  @position
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



24
25
26
# File 'lib/spellchecker.rb', line 24

def text
  @text
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



24
25
26
# File 'lib/spellchecker.rb', line 24

def type
  @type
end