View Source Holidefs.Definition.Rule (holidefs v0.4.0)

A definition rule has the information about the event and when it happens on a year.

Link to this section Summary

Functions

Builds a new rule from its month and definition map

Link to this section Types

Specs

t() :: %Holidefs.Definition.Rule{
  day: integer(),
  function: atom() | nil,
  function_modifier: integer() | nil,
  informal?: boolean(),
  month: integer(),
  name: String.t(),
  observed: atom() | nil,
  regions: [String.t()],
  week: integer(),
  weekday: integer(),
  year_ranges: map() | nil
}

Link to this section Functions

Specs

build(atom(), integer(), map()) :: t()

Builds a new rule from its month and definition map