module

Hathor::FieldMacro

Macros

field(type_declaration, **options)

field macro

  • it populates the PROPERTIES hash
  • creates property name : type | Nil
Source
field!(type_declaration, **options)

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

Source