Extend struct
examples/struct/extend_struct.cr
struct MyConfig end cfg = MyConfig.new p! cfg p! typeof(cfg) struct MyConfig property name : String? end cfg.name = "Foo" p! cfg
cfg # => MyConfig(@name=nil) typeof(cfg) # => MyConfig cfg # => MyConfig(@name="Foo")