class Athena::Serializer::SerializationContext

Overview

The ASR::Context specific to serialization.

Allows specifying if nil values should be serialized.

Defined in:

serialization_context.cr

Instance Method Summary

Instance methods inherited from class Athena::Serializer::Context

add_exclusion_strategy(strategy : ASR::ExclusionStrategies::ExclusionStrategyInterface) : self add_exclusion_strategy, direction : ASR::Context::Direction direction, exclusion_strategy : ASR::ExclusionStrategies::ExclusionStrategyInterface | Nil exclusion_strategy, groups : Set(String) | Nil groups, groups=(groups : Enumerable(String)) : self groups=, version : SemanticVersion | Nil version, version=(version : SemanticVersion | Nil)
version=(version : String) : self
version=

Instance Method Detail

def direction : ASR::Context::Direction #
Description copied from class Athena::Serializer::Context

Returns which (de)serialization action self represents.


[View source]
def emit_nil=(emit_nil : Bool) #

If nil values should be serialized.


[View source]
def emit_nil? : Bool #

If nil values should be serialized.


[View source]