View Source Alarmist.Matcher (alarmist v0.2.0)

Match logic using atom-based keys used in PropertyTable. Basically it's PropertyTable.Matcher.StringPath but using atoms instead of strings.

Summary

Functions

Check whether a pattern is valid

Check whether a property is valid

Returns true if the pattern matches the specified property

Functions

check_pattern(arg1)

Check whether a pattern is valid

Returns :ok on success or {:error, error} where error is an Exception struct with information about the issue.

check_property(arg1)

Check whether a property is valid

Returns :ok on success or {:error, error} where error is an Exception struct with information about the issue.

matches?(arg1, arg2)

Returns true if the pattern matches the specified property