Module: RDF::TypeCheck

Defined in:
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-884e3ef78084/lib/rdf/mixin/type_check.rb

Overview

An RDF type check mixin.

This module implements #type_error, which will raise TypeError.

See Also:

Instance Method Summary collapse

Instance Method Details

#type_error(message) ⇒ Object

Default implementation of type_error, which returns false. Classes including RDF::TypeCheck will raise TypeError instead.

Raises:

  • (TypeError)


17
18
19
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-884e3ef78084/lib/rdf/mixin/type_check.rb', line 17

def type_error(message)
  raise TypeError, message
end