bot_ex v0.2.0 BotEx.Helpers.Tools

Secondary functions

Link to this section Summary

Functions

Checked if the file exists at the given path

Checks the behavior is implemented by module

Link to this section Functions

Link to this function

check_path!(path)

check_path!(nil | Path.t()) :: binary() | no_return()

Checked if the file exists at the given path

Parameters

Link to this function

is_behaviours?(module, behaviour)

is_behaviours?(atom() | %{module_info: nil | keyword() | map()}, any()) ::
  boolean()

Checks the behavior is implemented by module

Parameters

  • module: module for checking
  • behaviour: behaviour for checking