class Kleene::State

Defined in:

kleene.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(final : Bool = false, error : Bool = false, id : Int32 | Nil = nil) #

[View source]

Class Method Detail

def self.new_error_state(final = false) #

[View source]
def self.next_id #

[View source]

Instance Method Detail

def dup #
Description copied from class Reference

Returns a shallow copy of this object.

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


[View source]
def error : Bool #

[View source]
def error=(error : Bool) #

[View source]
def error? : Bool #

is this an error state?


[View source]
def final : Bool #

[View source]
def final=(final : Bool) #

[View source]
def final? : Bool #

is this a final state?


[View source]
def id : Int32 #

[View source]
def to_s #
Description copied from class Object

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.


[View source]