ex_l7 v0.1.0 ExL7.Component

Helper functions for components.

Summary

Functions

Returns a string with sub components joined together, if any

Functions

to_string(components, control_characters)

Returns a string with sub components joined together, if any.

Parameters

  • components: A string or string list of components.
  • control_characters: ExL7.ControlCharacters used to join components.

Examples

iex> ExL7.Component.to_string("foo", %ExL7.ControlCharacters{})
"foo"

iex> ExL7.Component.to_string(["blue", "orange"], %ExL7.ControlCharacters{})
"blue&orange"