Consider this snippet from Phoenix Programming :
defmodule Rumbl.VideoController do use Rumbl.Web, :controller def index(conn, _params) do videos = Repo.all(Video) render(conn, "index.html", videos: videos) end end
index uses the render function that it receives from the import called use Rumbl.Web, :controller .
I know that other functions have been imported. But does Elixir provide a way to list them?
Can I list the available functions for the current scope in Elixir?
source share