module Hathor::NestedCollectionMacro

Direct including types

Defined in:

macros/nested_collection.cr

Macro Summary

Macro Detail

macro nested_collection(collection_name, **options, &block) #

collection macro

  • it populates the PROPERTIES hash
  • creates property name : Array(type | Nil) - Nil only if nilable

[View source]
macro nested_collection!(name, **options, &block) #

shortcut for "nilable: false" option


[View source]