module Hathor::FieldMacro

Direct including types

Defined in:

macros/field.cr

Macro Summary

Macro Detail

macro field(type_declaration, **options) #

field macro

  • it populates the PROPERTIES hash
  • creates property name : type | Nil

[View source]
macro field!(type_declaration, **options) #

shortcut for "nilable: false" option USE WITH CAUTION! Contract will not parse if field is missing!


[View source]