Answers for "Phoenix defp"

0

Phoenix defp

defmodule MyModule do

  def function do
    # call all the defp functions below to do something
  end

  defp function2 do
    # do something that no other module cares about or needs to know about
  end

  defp function3 do
    # do something that no other module cares about or needs to know about
  end

  defp function4 do
    # do something that no other module cares about or needs to know about
  end
end
Posted by: Guest on July-09-2020

Browse Popular Code Answers by Language