class

Handler

Inherits YAML::Serializable < JSON::Serializable < Reference < Object

The function that serves a route, as the route names it (listUsers, h.Show, articles#show), with its definition site when the analyzer could resolve one. details.code_paths is where the route is declared; this is where its body lives — the file an agent opens next. Best-effort: only analyzers with definition resolution populate it, and a route whose handler is an inline closure has none to name.

A class, not a struct: Endpoint carries it inline otherwise, and every byte Endpoint grows lands in the spec binary's __crystal_main frame (one by-value slot per top-level endpoint), which sits at the edge of the 8 MB main stack.

Constructors

new(name : String, path : String | Nil = nil, line : Int32 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

dispatch_path

The file of the class the route dispatches to, when that is not path: a Rails action defined in a concern or a parent class runs with the routed controller's callback chain, which the auth taggers read. Scan time only; never serialized.

Source
dispatch_path=(dispatch_path : String | Nil)

The file of the class the route dispatches to, when that is not path: a Rails action defined in a concern or a parent class runs with the routed controller's callback chain, which the auth taggers read. Scan time only; never serialized.

Source
hash(hasher)

See Object#hash(hasher)

line
Source
line=(line : Int32 | Nil)
Source
name
Source
name=(name : String)
Source
path
Source
path=(path : Nil | String)
Source