abstract struct CrSerializer::ExclusionStrategies::ExclusionStrategy

Overview

Base struct of all exclusion strategies.

Custom exclusion strategies can be defined by simply inheriting from the base struct and implementing the #skip_property? method.

Direct Known Subclasses

Defined in:

exclusion_strategies/exclusion_strategy.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

abstract def skip_property?(metadata : PropertyMetadata, context : Context) : Bool #

Returns true if a property should NOT be serialized/deserialized.


[View source]