struct

AgentApropos::Frontmatter

Inherits Struct < Value < Object

Constants

CLOSE_FENCE = /^---[^\S\r\n]*(?:\r?\n|\z)/m
KNOWN_KEYS = ["paths", "contents", "skill", "description"]
OPEN_FENCE = /\A---[^\S\r\n]*\r?\n/

Constructors

new(paths : Array(String) = [] of String, contents : Array(String) = [] of String, skill : Bool = false, description : Nil | String = nil, unknown_keys : Array(String) = [] of String)
Source
parse(yaml : String) : Frontmatter
Source

Class methods

split(text : String) : Tuple(Frontmatter | Nil, String)
Source

Instance methods

contents
Source
description
Source
paths
Source
reference_only?
Source
scoped?
Source
skill?
Source
unknown_keys
Source

Nested types