Meeseeks.Selector.validate
You're seeing just the callback
validate
, go back to Meeseeks.Selector module for more information.
Specs
Invoked to validate a selector, returning {:ok, selector}
if the selector
is valid or {:error, reason}
if it is not.
Selector validation can be useful in instances where a selector has been built dynamically (parsed from a string, for instance).
See the Meeseeks.Selector.Element.PseudoClass.*
selectors for examples.
Meeseek's selection process doesn't call validate
anywhere, so there is
no selection-time cost for providing a validator.