Class: Tasker::Types::BaseConfig

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/tasker/types.rb

Overview

Base configuration class that ensures immutability

All Tasker configuration classes inherit from this base class to ensure they are frozen after creation, providing immutability and thread safety.

Also automatically handles deep symbolization of nested hash attributes.

Instance Method Summary collapse

Constructor Details

#initializeBaseConfig

Returns a new instance of BaseConfig.



39
40
41
42
# File 'lib/tasker/types.rb', line 39

def initialize(*)
  super
  freeze
end