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-2.0.0 lib/rdf/mixin/type_check.rb
rdf-2.0.0.beta2 lib/rdf/mixin/type_check.rb
rdf-2.0.0.beta1 lib/rdf/mixin/type_check.rb
rdf-1.99.1 lib/rdf/mixin/type_check.rb
rdf-1.99.0.1 lib/rdf/mixin/type_check.rb
rdf-1.99.0 lib/rdf/mixin/type_check.rb
rdf-1.1.17.1 lib/rdf/mixin/type_check.rb
rdf-1.1.17 lib/rdf/mixin/type_check.rb
rdf-1.1.16.1 lib/rdf/mixin/type_check.rb
rdf-1.1.16 lib/rdf/mixin/type_check.rb
rdf-1.1.15 lib/rdf/mixin/type_check.rb
rdf-1.1.14 lib/rdf/mixin/type_check.rb
rdf-1.1.13 lib/rdf/mixin/type_check.rb
rdf-1.1.12 lib/rdf/mixin/type_check.rb
rdf-1.1.11 lib/rdf/mixin/type_check.rb
rdf-1.1.10 lib/rdf/mixin/type_check.rb
rdf-1.1.9 lib/rdf/mixin/type_check.rb
rdf-1.1.8 lib/rdf/mixin/type_check.rb
rdf-1.1.7 lib/rdf/mixin/type_check.rb
rdf-1.1.6 lib/rdf/mixin/type_check.rb