Module: RDF::TypeCheck

Defined in:
vendor/bundler/ruby/2.5.0/bundler/gems/rdf-c7356a6367f8/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/2.5.0/bundler/gems/rdf-c7356a6367f8/lib/rdf/mixin/type_check.rb', line 17

def type_error(message)
  raise TypeError, message
end