Normandy.Tools.Examples.StringManipulator (normandy v0.6.0)

View Source

A tool for performing string manipulation operations.

Examples

iex> tool = %Normandy.Tools.Examples.StringManipulator{operation: "uppercase", text: "hello"}
iex> Normandy.Tools.BaseTool.run(tool)
{:ok, "HELLO"}

iex> tool = %Normandy.Tools.Examples.StringManipulator{operation: "reverse", text: "hello"}
iex> Normandy.Tools.BaseTool.run(tool)
{:ok, "olleh"}

Summary

Types

t()

@type t() :: %Normandy.Tools.Examples.StringManipulator{
  count: integer() | nil,
  delimiter: String.t() | nil,
  operation: String.t(),
  text: String.t()
}