LiveDebugger.Services.System.ModuleService behaviour (LiveDebugger v0.1.4)

View Source

This module provides wrappers for system functions that queries modules in the current application.

Summary

Functions

Wrapper for :code.all_loaded/0 that returns a list of loaded modules.

Returns list of behaviours implemented by the given module.

Wrapper for Code.ensure_loaded?/1 that returns if a module is loaded.

Callbacks

all()

@callback all() :: [{charlist(), charlist(), boolean()}]

behaviours(module)

@callback behaviours(module :: module()) :: [module()]

loaded?(module)

@callback loaded?(module :: module()) :: boolean()

Functions

all()

@spec all() :: [{module(), charlist()}]

Wrapper for :code.all_loaded/0 that returns a list of loaded modules.

behaviours(module)

@spec behaviours(module :: module()) :: [module()]

Returns list of behaviours implemented by the given module.

loaded?(module)

@spec loaded?(module :: module()) :: boolean()

Wrapper for Code.ensure_loaded?/1 that returns if a module is loaded.