abstract class CrSerializer::Assertions::BasicAssertion(T)

Overview

Base class for assertions that require no annotation fields

TODO Remove the noop property once a workaround to this issue is found.

Direct Known Subclasses

Defined in:

CrSerializer/assertions/interfaces/basic_assertion.cr

Constructors

Instance methods inherited from class CrSerializer::Assertions::Assertion

message : String message, valid? : Bool valid?

Constructor methods inherited from class CrSerializer::Assertions::Assertion

new(field : String, message : String | Nil) new

Constructor Detail

def self.new(field : String, message : String | Nil, actual : T, noop : Nil = nil) #

[View source]