Normandy.Tools.Examples.StringManipulator
(normandy v0.6.1)
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"}