BotEx.Helpers.Tools (bot_ex v1.0.2)

Secondary functions

Summary

Functions

Checked if the file exists at the given path

Checks the behavior is implemented by module

Functions

check_behaviours!(module, behaviour)

@spec check_behaviours!(atom() | %{module_info: nil | keyword() | map()}, any()) ::
  module() | no_return()

check_path!(path)

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

Checked if the file exists at the given path

Parameters

is_behaviours?(module, behaviour)

@spec 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