struct Athena::Serializer::ExclusionStrategies::Disjunct

Overview

Wraps an Array(ASR::ExclusionStrategies::ExclusionStrategyInterface), excluding a property if any member skips it.

Used internally to allow multiple exclusion strategies to be used within a single instance variable for ASR::Context#add_exclusion_strategy.

Included Modules

Defined in:

exclusion_strategies/disjunct.cr

Constructors

Instance Method Summary

Instance methods inherited from module Athena::Serializer::ExclusionStrategies::ExclusionStrategyInterface

skip_property?(metadata : ASR::PropertyMetadataBase, context : ASR::Context) : Bool skip_property?

Constructor Detail


[View source]

Instance Method Detail

The wrapped exclusion strategies.


[View source]
def skip_property?(metadata : ASR::PropertyMetadataBase, context : ASR::Context) : Bool #

Returns true if a property should NOT be (de)serialized.


[View source]