Module: RDF::TypeCheck
- Defined in:
- lib/rdf/mixin/type_check.rb
Overview
An RDF type check mixin.
This module implements #raise_error, which will raise TypeError.
Instance Method Summary collapse
-
#type_error(message) ⇒ Object
Default implementation of type_error, which returns false.
Instance Method Details
#type_error(message) ⇒ Object
Default implementation of type_error, which returns false. Classes including RDF::TypeCheck will raise TypeError instead.
17 18 19 |
# File 'lib/rdf/mixin/type_check.rb', line 17 def type_error() raise TypeError, end |