class TSS::Link

Class representing links(suffixes) between vertexes

Attributes

char[R]

Character to simplify search

end_index[RW]

Index of word in dictionary if vertex is ending, or nil if vertex is suffix

vertex[RW]

Linked vertex

Public Class Methods

new(vertex, end_index = nil) click to toggle source

Create new ACT::Link object

# File lib/tss/link.rb, line 17
def initialize(vertex, end_index = nil)
  @vertex = vertex
  @char = @vertex.char
  @end_index = end_index
end