class

Patty::Profile

Inherits YAML::Serializable::Strict < YAML::Serializable < Reference < Object

Pattyfile identity comes from its filename and is never serialized.

Constructors

new(caddy : String, program : String | Nil = nil, id : String | Nil = nil)
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

caddy
Source
caddy=(caddy : String)
Source
id=(id : String | Nil)
Source
name
Source
open_url

First site address in the Caddy snippet, turned into something a browser can open. Best effort — nil when nothing usable is found.

Source
program
Source
program=(program : String | Nil)
Source
slug
Source
to_pattyfile

Canonical .pattyfile output used for storage and export.

Source