module TandaCLI::Configuration::Macros

Direct including types

Defined in:

tanda_cli/configuration/macros.cr

Macro Summary

Macro Detail

macro environment_property(name) #

Defines getter and setter methods for accessing Configuration::Environment methods based on Configuration#mode

Example:

environment_property time_zone : String?

# expands to

def time_zone : String | ::Nil
  current_environment.time_zone
end

def time_zone=(value : String | ::Nil)
  current_environment.time_zone = value
end

[View source]