class YanSpeller::SpellError
Public Class Methods
new(err)
click to toggle source
# File lib/yan_speller/spell_error.rb, line 4 def initialize err err.each do |key, value| instance_variable_set("@#{key}".to_sym, value) end end
Public Instance Methods
to_s()
click to toggle source
# File lib/yan_speller/spell_error.rb, line 10 def to_s "Error in the word <#{@word}>, maybe it is better to say <#{@s}>." end