Module: RDF

Defined in:
lib/rdf/content_vocab.rb,
lib/rdf/dcmitype_vocab.rb,
lib/rdf/open_annotation/vocab.rb,
lib/rdf/open_annotation/version.rb

Defined Under Namespace

Modules: OpenAnnotation Classes: ContentDeprecated, DCMITypeDeprecated, OpenAnnotationDeprecated

Class Method Summary collapse

Class Method Details

.const_missing(const_name) ⇒ Object

deprecate OpenAnnotation



7
8
9
10
11
# File 'lib/rdf/content_vocab.rb', line 7

def self.const_missing(const_name)
  super unless const_name == :Content
  warn "DEPRECATION WARNING: the class RDF::Content is deprecated. Use RDF::Vocab::CNT from https://github.com/ruby-rdf/rdf-vocab instead."
  ContentDeprecated
end