class Greeb::UnknownEntity
This runtime error appears when {Greeb::Tokenizer} or {Greeb::Segmentator} tries to recognize unknown character.
Attributes
pos[R]
text[R]
Public Class Methods
new(text, pos)
click to toggle source
@private
# File lib/greeb/exceptions.rb, line 8 def initialize(text, pos) @text, @pos = text, pos end
Public Instance Methods
to_s()
click to toggle source
Generate the real error message.
# File lib/greeb/exceptions.rb, line 14 def to_s 'Could not recognize character "%s" @ %d' % [text[pos], pos] end