File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -921,6 +921,11 @@ defmodule Module do
921
921
Use `Kernel.function_exported?/3` and `Kernel.macro_exported?/3` to check for
922
922
public functions and macros respectively in compiled modules.
923
923
924
+ Note that `defines?` returns false for functions and macros that have
925
+ been defined but then marked as overridable and no other implementation
926
+ has been provided. You can check the overridable status by calling
927
+ `overridable?/2`.
928
+
924
929
## Examples
925
930
926
931
defmodule Example do
@@ -1052,6 +1057,11 @@ defmodule Module do
1052
1057
An overridable function is lazily defined, allowing a
1053
1058
developer to customize it. See `Kernel.defoverridable/1` for
1054
1059
more information and documentation.
1060
+
1061
+ Once a function or macro are marked as overridable, it will
1062
+ no longer be listed under `definitions_in/1` or return true
1063
+ when given to `defines?/2` until another implementation is
1064
+ given.
1055
1065
"""
1056
1066
@ spec make_overridable ( module , [ definition ] ) :: :ok
1057
1067
def make_overridable ( module , tuples ) when is_atom ( module ) and is_list ( tuples ) do
You can’t perform that action at this time.
0 commit comments