View Source PhpAssocMap.Exploder (PhpAssocMap v3.0.0)

Summary

Functions

Indents the whole associative array using either tabs or spaces. Defaults to 2 spaces.

Types

@type input() :: [tuple()] | map()
@type spacing() :: :tabs | {:spaces, non_neg_integer()} | :none

Functions

Link to this function

explode(ast, spacing \\ {:spaces, 2})

View Source
@spec explode(input(), spacing()) :: binary()

Indents the whole associative array using either tabs or spaces. Defaults to 2 spaces.

Use explode/2 to specify identation between:

  • {:spaces, non_neg_integer()}: Indents using the amount of provided spaces
  • :tabs: Indents using tabs
  • :none: Has no indentation nor break lines