Class: Ispell::Result
- Inherits:
-
Object
- Object
- Ispell::Result
- Defined in:
- lib/ispell.rb
Constant Summary collapse
- TYPES =
{ '*' => :ok, '+' => :root, '&' => :miss, '?' => :guess, '-' => :compound, '#' => :none }
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#guesses ⇒ Object
Returns the value of attribute guesses.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#original ⇒ Object
Returns the value of attribute original.
-
#root ⇒ Object
Returns the value of attribute root.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#freeze! ⇒ Object
Freezes all instance variables.
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
7 8 9 |
# File 'lib/ispell.rb', line 7 def count @count end |
#guesses ⇒ Object
Returns the value of attribute guesses.
7 8 9 |
# File 'lib/ispell.rb', line 7 def guesses @guesses end |
#offset ⇒ Object
Returns the value of attribute offset.
7 8 9 |
# File 'lib/ispell.rb', line 7 def offset @offset end |
#original ⇒ Object
Returns the value of attribute original.
7 8 9 |
# File 'lib/ispell.rb', line 7 def original @original end |
#root ⇒ Object
Returns the value of attribute root.
7 8 9 |
# File 'lib/ispell.rb', line 7 def root @root end |
#type ⇒ Object
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 |