enum

Arcana::Directory::Kind

Inherits Enum < Comparable < Value < Object

Constants

Agent = 0
Service = 1
Topic = 2

Constructors

from_address(address : String) : self

Best-guess kind from address shape. Used as a fallback when the caller doesn't pass an explicit kind:. Precedence: @foo → Agent #foo → Topic foo:x → Service foo → Service (bare non-colon defaults to service — a bare token is a Toolset or single-purpose service; agents require the @ sigil).

Source

Class methods

from_name?(name : String | Nil) : self | Nil

The kind named by name ("agent", "service", "topic"), or nil.

Source

Instance methods

agent?

Returns true if this enum value equals Agent

Source
service?

Returns true if this enum value equals Service

Source
topic?

Returns true if this enum value equals Topic

Source