Class: Ispell::Result

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

Constant Summary collapse

TYPES =
{ '*' => :ok, '+' => :root, '&' => :miss,
'?' => :guess, '-' => :compound, '#' => :none }

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#countObject

Returns the value of attribute count.



7
8
9
# File 'lib/ispell.rb', line 7

def count
  @count
end

#guessesObject

Returns the value of attribute guesses.



7
8
9
# File 'lib/ispell.rb', line 7

def guesses
  @guesses
end

#offsetObject

Returns the value of attribute offset.



7
8
9
# File 'lib/ispell.rb', line 7

def offset
  @offset
end

#originalObject

Returns the value of attribute original.



7
8
9
# File 'lib/ispell.rb', line 7

def original
  @original
end

#rootObject

Returns the value of attribute root.



7
8
9
# File 'lib/ispell.rb', line 7

def root
  @root
end

#typeObject

Returns the value of attribute type.



7
8
9
# File 'lib/ispell.rb', line 7

def type
  @type
end

Instance Method Details

#freeze!Object

Freezes all instance variables



10
11
12
13
# File 'lib/ispell.rb', line 10

def freeze!
  instance_variables.each {|v| eval("#{v}.freeze")}
  self
end