Sha256: fb7e5b1b54755d1daa9fbc5553b53d1b0dcbf241af50f62561ae4cd5904c4c98

Contents?: true

Size: 477 Bytes

Versions: 91

Compression:

Stored size: 477 Bytes

Contents

module RDF
  ##
  # An RDF type check mixin.
  #
  # This module implements #type_error, which will raise TypeError.
  #
  # @see RDF::Value
  # @see RDF::Literal
  # @see RDF::Literal
  module TypeCheck
    ##
    # Default implementation of type_error, which returns false.
    # Classes including RDF::TypeCheck will raise TypeError
    # instead.
    #
    # @raise [TypeError]
    def type_error(message)
      raise TypeError, message
    end
  end # TypeCheck
end # RDF

Version data entries

91 entries across 91 versions & 1 rubygems

Version Path
rdf-1.1.5.1 lib/rdf/mixin/type_check.rb
rdf-1.1.5 lib/rdf/mixin/type_check.rb
rdf-1.1.4.3 lib/rdf/mixin/type_check.rb
rdf-1.1.4.2 lib/rdf/mixin/type_check.rb
rdf-1.1.4.1 lib/rdf/mixin/type_check.rb
rdf-1.1.4 lib/rdf/mixin/type_check.rb
rdf-1.1.3 lib/rdf/mixin/type_check.rb
rdf-1.1.2.1 lib/rdf/mixin/type_check.rb
rdf-1.1.1.1 lib/rdf/mixin/type_check.rb
rdf-1.1.1 lib/rdf/mixin/type_check.rb
rdf-1.1.0.1 lib/rdf/mixin/type_check.rb