Pathex.Builder behaviour (Pathex v1.2.0) View Source
Module for building combinations into path-closures
Link to this section Summary
Functions
This function creates quoted fn-closure from passed combination and operations
This function creates quoted path-closure which is a composition of multiple quoted paths
This function creates quoted fn-closure from passed combination and builder
Callbacks
Implementation takes combination for path-closure and returns code structure to be built into some case of path-closure
Link to this section Types
Specs
t() :: Pathex.Builder.ForceUpdater | Pathex.Builder.MatchableViewer | Pathex.Builder.SimpleViewer | Pathex.Builder.SimpleUpdater
Link to this section Functions
Specs
build(Pathex.Combination.t(), Pathex.Operations.t()) :: Macro.t()
This function creates quoted fn-closure from passed combination and operations
Closure has two arguments: operation name and tuple or actual arguments
It will look like
iex> fn
:view, {struct} -> ...
:update, {struct, fun} -> ...
...
end
Specs
This function creates quoted path-closure which is a composition of multiple quoted paths
Specs
build_only(Pathex.Combination.t(), t()) :: Macro.t()
This function creates quoted fn-closure from passed combination and builder
Closure has as much arguments as specified builder creates
Link to this section Callbacks
Specs
build(Pathex.Combination.t()) :: Pathex.Builder.Code.t()
Implementation takes combination for path-closure and returns code structure to be built into some case of path-closure