holidefs v0.2.0 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

Link to this type t() View Source
t() :: %Holidefs.Definition.Rule{
  day: integer(),
  function: function(),
  informal?: boolean(),
  month: integer(),
  name: String.t(),
  observed: function(),
  week: integer(),
  weekday: integer(),
  year_ranges: map() | nil
}

Link to this section Functions

Link to this function build(month, map) View Source
build(integer(), map()) :: t()

Builds a new rule from its month and definition map