holidefs v0.3.2 Holidefs.Definition.Rule View Source

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: function(),
  informal?: boolean(),
  month: integer(),
  name: String.t(),
  observed: function(),
  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