Module: LogStruct::Sorbet::SerializeSymbolKeys

Extended by:
T::Helpers, T::Sig
Included in:
ConfigStruct::ErrorHandlingModes, ConfigStruct::Filters, ConfigStruct::Integrations, Configuration
Defined in:
lib/log_struct/sorbet/serialize_symbol_keys.rb

Instance Method Summary collapse

Instance Method Details

#serialize(strict = true) ⇒ Hash{Symbol => T.untyped}

Parameters:

  • strict (Boolean) (defaults to: true)

Returns:

  • (Hash{Symbol => T.untyped})


13
14
15
# File 'lib/log_struct/sorbet/serialize_symbol_keys.rb', line 13

def serialize(strict = true)
  super.deep_symbolize_keys
end

#to_hHash{Symbol => T.untyped}

Returns:

  • (Hash{Symbol => T.untyped})


18
19
20
# File 'lib/log_struct/sorbet/serialize_symbol_keys.rb', line 18

def to_h
  serialize
end