module RDF::TypeCheck
An RDF
type check mixin.
This module implements type_error
, which will raise TypeError.
@see RDF::Value
@see RDF::Literal
@see RDF::Literal
Public Instance Methods
type_error(message)
click to toggle source
Default implementation of type_error
, which returns false. Classes including RDF::TypeCheck
will raise TypeError instead.
@raise [TypeError]
# File lib/rdf/mixin/type_check.rb, line 17 def type_error(message) raise TypeError, message end