dummy v1.4.0 Dummy.Method View Source
Handles replacing methods
Link to this section Summary
Functions
Replaces a method with a mock, according to how the mock was defined: "function", "function/N", {"function", value}, {"function/N", value} or {"function", fn}
Link to this section Functions
Replaces a method with a mock, according to how the mock was defined: "function", "function/N", {"function", value}, {"function/N", value} or {"function", fn}
"function/
"function" is a shorthand for "function/1"
{"function", value} replaces the function with an anonymous, single-argument function that returns 'value'
{"function", fn a, b, .. -> body end} replaces the original function with the given one.