Peluquero.Peluqueria.Chairs (peluquero v0.99.43) View Source

Internally used module to maintain a list of middlewares used to shave inputs. Peluquero.scissors!/2 calls this module to add the middleware. Peluquero.blunt!/2 can be used to remove the middleware(s).

Link to this section Summary

Functions

Removes the middleware from the middlewares list

Returns a specification to start this module under a supervisor.

Adds a middleware to the middlewares list

Retrieves a list of middlewares

Link to this section Functions

Link to this function

blunt!(name \\ nil, count \\ 0)

View Source

Specs

blunt!(binary() | atom(), integer()) :: [atom()]

Removes the middleware from the middlewares list

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

scissors!(name \\ nil, fun)

View Source

Specs

scissors!(binary() | atom(), (any() -> any()) | tuple()) :: any()

Adds a middleware to the middlewares list

Specs

scissors?(binary() | atom()) :: [(any() -> any()) | tuple()]

Retrieves a list of middlewares