module TandaCLI::Configuration::Macros
Direct including types
Defined in:
tanda_cli/configuration/macros.crMacro Summary
-
environment_property(name)
Defines getter and setter methods for accessing
Configuration::Environment
methods based onConfiguration#mode
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