Mix.Generator.embed_text
You're seeing just the macro
embed_text
, go back to Mix.Generator module for more information.
Embeds a text given by contents
into the current module.
It will define a private function with the name
followed by
_text
that expects no arguments.
Examples
defmodule Mix.Tasks.MyTask do
require Mix.Generator
Mix.Generator.embed_text(:error, "There was an error!")
end