struct

DataDungeon::Recipe::Wording

Inherits JSON::Serializable < Struct < Value < Object

A named wording a recipe used, from the store's registry: what kind of wording it is (style, rules, rating, framing, character, theme, ...), its name and its words. A name is owner:name going in and owner:name@version coming back; the owner is the app that wrote the wording (its consumer name), or dd for DataDungeon's own. (0.13 and 0.14 let a name add a purpose, owner:name/purpose; 0.15 removed it, since what it told apart was framing, which has its own part.)

Constructors

new(kind : String, name : String, text : String)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

handle(owner : String, name : String, version : String | Nil = nil) : String

How a wording is named: owner:name, and @version when there is one.

Source

Instance methods

handle

{owner, name, version}: the version nil when not given.

Source
kind
Source
name
Source
text
Source