Pathex v0.3.0 Pathex.Builder 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 fn-closure from passed combination and builder
Link to this section Types
Link to this type
t()
View Sourcet() :: Pathex.Builder.ForceSetter | Pathex.Builder.MatchableSelector | Pathex.Builder.SimpleSelector | Pathex.Builder.SimpleSetter | Pathex.Builder.UpdateSetter
Link to this section Functions
Link to this function
build(combination, operations)
View Sourcebuild(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
:get, {struct} -> ...
:set, {struct, value} -> ...
...
end
Link to this function
build_only(combination, builder)
View Sourcebuild_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