Kleene::State
Inherits Reference < Object
Constructors
new(final : Bool = false, error : Bool = false, id : Int32 | Nil = nil)
SourceClass methods
new_error_state(final = false)
Sourcenext_id
SourceInstance methods
dup
Returns a shallow copy of this object.
This allocates a new object and copies the contents of
self into it.
error
Sourceerror=(error : Bool)
Sourcefinal
Sourcefinal=(final : Bool)
Sourceid
Sourceto_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.