module Crygen::Modules::Property

Direct including types

Defined in:

modules/property.cr

Instance Method Summary

Instance Method Detail

def add_property(visibility : Crygen::Enums::PropVisibility, name : String, type : String, scope : Crygen::Enums::PropScope = :public) : self #

Adds a property into object (visibility, name, type and scope). Parameters:

  • visibility : Crygen::Enums::PropVisibility
  • name : String
  • type : String
  • scope : Crygen::Enums::PropScope = :public Returns: an object class itself.

[View source]
def add_property(visibility : Crygen::Enums::PropVisibility, name : String, type : String, value : String, scope : Crygen::Enums::PropScope = :public) : self #

Adds a property into object (visibility, name, type, value and scope). Parameters:

  • visibility : Crygen::Enums::PropVisibility
  • name : String
  • type : String
  • value : String
  • scope : Crygen::Enums::PropScope = :public Returns: an object class itself.

[View source]