class

Kleene::State

Inherits Reference < Object

Constructors

new(final : Bool = false, error : Bool = false, id : Int32 | Nil = nil)
Source

Class methods

new_error_state(final = false)
Source
next_id
Source

Instance methods

dup

Returns a shallow copy of this object.

This allocates a new object and copies the contents of self into it.

Source
error
Source
error=(error : Bool)
Source
error?

is this an error state?

Source
final
Source
final=(final : Bool)
Source
final?

is this a final state?

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