View Source PosexionalRow (posexional v1.1.0-rc.0)

macros for defining row modules

Summary

Functions

add use Posexional on top of an elixir module to use macros to define fields

add an empty field

add a field with a fixed value

sets the row matcher

add all fields from another row module

sets the row name, if no name is provided the module name will be used

add a field with a progressive_number value

sets the row separator

Functions

Link to this macro

__using__(opts \\ [])

View Source (macro)

add use Posexional on top of an elixir module to use macros to define fields

Link to this macro

empty(size, opts \\ [])

View Source (macro)

add an empty field

Link to this macro

field(field_name, type, size, opts \\ [])

View Source (macro)

add a field

Link to this macro

fixed_value(v)

View Source (macro)

add a field with a fixed value

sets the row matcher

Link to this macro

import_fields_from(module_name)

View Source (macro)

add all fields from another row module

Link to this macro

name(row_name)

View Source (macro)

sets the row name, if no name is provided the module name will be used

Link to this macro

progressive_number(field_name, size, opts \\ [])

View Source (macro)

add a field with a progressive_number value

Link to this macro

separator(row_separator)

View Source (macro)

sets the row separator

Link to this macro

value(field_name, size, opts \\ [])

View Source (macro)

add a value field