struct Athena::Validator::Spec::MockMetadataFactory(T1, T2, T3, T4, T5)

Overview

A spec implementation of AVD::Metadata::MetadataFactoryInterface, supporting a fixed number of additional metadatas

Included Modules

Defined in:

spec.cr

Constructors

Instance Method Summary

Instance methods inherited from module Athena::Validator::Metadata::MetadataFactoryInterface

metadata(object : AVD::Validatable) : AVD::Metadata::ClassMetadata metadata

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def add_metadata(klass : AVD::Validatable::Class, metadata : AVD::Metadata::ClassMetadata) : Nil #

[View source]
def initialize #

[View source]

Returns an AVD::Metadata::ClassMetadata instance for the related AVD::Validatable object.


[View source]