View Source Tablex (tablex v0.1.1-alpha.3)
Tablex implements Decision Table. Its goal is to make domain rules easy to maintain.
Link to this section Summary
Link to this section Functions
@spec new( String.t(), keyword() ) :: Tablex.Table.t()
Create a new table.
example
Example
Tablex.new("""
F value || color
1 >90 || red
2 80..90 || orange
3 20..79 || green
4 <20 || blue
""")
@spec sigil_RULES( String.t(), keyword() ) :: Tablex.Table.t()
The same as new/2
.
example
Example
~RULES"""
F value || color
1 >90 || red
2 80..90 || orange
3 20..79 || green
4 <20 || blue
"""