struct Athena::Serializer::ExclusionStrategies::Disjunct
- Athena::Serializer::ExclusionStrategies::Disjunct
- Struct
- Value
- Object
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.crConstructors
Instance Method Summary
-
#members : Array(ASR::ExclusionStrategies::ExclusionStrategyInterface)
The wrapped exclusion strategies.
-
#skip_property?(metadata : ASR::PropertyMetadataBase, context : ASR::Context) : Bool
Returns
true
if a property should NOT be (de)serialized.
Instance methods inherited from module Athena::Serializer::ExclusionStrategies::ExclusionStrategyInterface
skip_property?(metadata : ASR::PropertyMetadataBase, context : ASR::Context) : Bool
skip_property?
Constructor Detail
Instance Method Detail
def members : Array(ASR::ExclusionStrategies::ExclusionStrategyInterface)
#
The wrapped exclusion strategies.
Returns true
if a property should NOT be (de)serialized.