module Hathor::FieldMacro
Direct including types
Defined in:
macros/field.crMacro Summary
-
field(type_declaration, **options)
field macro * it populates the PROPERTIES hash * creates property name : type | Nil
-
field!(type_declaration, **options)
shortcut for "nilable: false" option USE WITH CAUTION! Contract will not parse if field is missing!
Macro Detail
macro field(type_declaration, **options)
#
field macro
- it populates the PROPERTIES hash
- creates property name : type | Nil
macro field!(type_declaration, **options)
#
shortcut for "nilable: false" option USE WITH CAUTION! Contract will not parse if field is missing!