amnesia v0.2.8 Amnesia.Helper.Options
Link to this section Summary
Functions
Turns parameter into a list, invariant when paramers is a list or nil.
Allows use of pipe operator to chain conditional updates to a keyword list. If the given value is nil, no update is done.
Link to this section Functions
Link to this function
normalize(data)
Turns parameter into a list, invariant when paramers is a list or nil.
Link to this function
update(args, key, value)
Allows use of pipe operator to chain conditional updates to a keyword list. If the given value is nil, no update is done.
Please note: mylist[:a][:b] will properly return nil even of mylist[:a] is already nil instead of crashing. This allows using even deeply nested values safely with this construct.