Srd.Content.Conditions (srd_5e v0.2.0)

Copy Markdown View Source

SRD conditions, looked up by slug.

Summary

Functions

Every condition.

Look up a condition by slug, raising if there is none.

Look up a condition by slug, returning nil if there is none.

Functions

all()

@spec all() :: [Srd.Content.Condition.t()]

Every condition.

fetch!(slug)

@spec fetch!(String.t()) :: Srd.Content.Condition.t()

Look up a condition by slug, raising if there is none.

get(slug)

@spec get(String.t()) :: Srd.Content.Condition.t() | nil

Look up a condition by slug, returning nil if there is none.