Sugar.App

Source

Summary

get_port(opts)

Grabs the application’s running port number or 4000 when opts doesn’t contain the :port keyword

start()

Starts the application, checking if it’s already been started

start(type, args)

Callback for start/2. Starts the supervisor

stop(state)

Callback for stop/1

Functions

get_port(opts)

Specs:

Grabs the application’s running port number or 4000 when opts doesn’t contain the :port keyword.

Arguments

  • opts - Keyword - options

Returns

Integer

Source
start()

Specs:

  • start :: :ok

Starts the application, checking if it’s already been started.

Source
start(type, args)

Specs:

Callback for start/2. Starts the supervisor.

Source
stop(state)

Specs:

  • stop(any) :: :ok

Callback for stop/1.

Source