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-3.2.12 lib/rdf/mixin/type_check.rb
rdf-3.3.2 lib/rdf/mixin/type_check.rb
rdf-3.3.1 lib/rdf/mixin/type_check.rb
rdf-3.3.0 lib/rdf/mixin/type_check.rb
rdf-3.2.11 lib/rdf/mixin/type_check.rb
rdf-3.2.10 lib/rdf/mixin/type_check.rb
rdf-3.2.9 lib/rdf/mixin/type_check.rb
rdf-3.2.8 lib/rdf/mixin/type_check.rb
rdf-3.2.7 lib/rdf/mixin/type_check.rb
rdf-3.2.6 lib/rdf/mixin/type_check.rb
rdf-3.2.5 lib/rdf/mixin/type_check.rb
rdf-3.2.4 lib/rdf/mixin/type_check.rb
rdf-3.2.3 lib/rdf/mixin/type_check.rb
rdf-3.2.2 lib/rdf/mixin/type_check.rb
rdf-3.2.1 lib/rdf/mixin/type_check.rb
rdf-3.1.15 lib/rdf/mixin/type_check.rb
rdf-3.1.13 lib/rdf/mixin/type_check.rb
rdf-3.1.12 lib/rdf/mixin/type_check.rb
rdf-3.1.11 lib/rdf/mixin/type_check.rb
rdf-3.1.10 lib/rdf/mixin/type_check.rb