Gitignore.Rule (Gitignore v0.1.0)

Copy Markdown View Source

Parsed gitignore rule metadata.

Rules are usually produced by Gitignore.parse/1 rather than constructed directly.

Summary

Types

t()

@type t() :: %Gitignore.Rule{
  anchored?: boolean(),
  basename?: boolean(),
  dir_only?: boolean(),
  line: pos_integer(),
  negated?: boolean(),
  pattern: binary(),
  source: binary()
}

Functions

parse(line, line_number)

@spec parse(binary(), pos_integer()) :: {:ok, t()} | :skip