class

CrystalMoji::FST::State

Inherits Reference < Object

Constructors

new(source : State)
Source

Instance methods

==(other : State) : Bool
Source
arcs
Source
arcs=(arcs : Array(Arc))
Source
binary_search_arc(transition : Char, begin_indice : Int32, end_indice : Int32) : Arc | Nil
Source
final?
Source
find_arc(transition : Char) : Arc | Nil
Source
get_all_transition_strings
Source
hash

Generates an UInt64 hash value for this object.

This method must have the property that a == b implies a.hash == b.hash.

The hash value is used along with == by the Hash class to determine if two objects reference the same hash key.

Subclasses must not override this method. Instead, they must define hash(hasher), though usually the macro def_hash can be used to generate this method.

Source
set_arc(transition : Char, output : Int32, toState : State) : Arc
Source
set_arc(transition : Char, toState : State)
Source
set_final
Source
target_jump_address
Source
target_jump_address=(target_jump_address : Int32)
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
visited
Source
visited=(visited : Bool)
Source