Module: RDF::TypeCheck

Defined in:
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 'lib/rdf/mixin/type_check.rb', line 17

def type_error(message)
  raise TypeError, message
end