Class: Schemaful::Schema::Base Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/schemaful/schema/base.rb

Overview

This class is abstract.

Subclass and override #validate to implement a custom Base class.

Base class for all schema classes.

Direct Known Subclasses

Type::Any

Instance Method Summary collapse

Instance Method Details

#validate(value) ⇒ Object

Check if a value is valid.

Parameters:

  • value (Object)

    the value to validate.

Raises:


13
14
15
# File 'lib/schemaful/schema/base.rb', line 13

def validate(value)       # rubocop:disable Lint/UnusedMethodArgument
  raise NotImplementedError
end