Method: RDF.method_missing

Defined in:
lib/rdf.rb

.method_missing(property, *args, &block) ⇒ Object

Delegate other methods to RDF::RDFV



263
264
265
266
267
268
269
270
# File 'lib/rdf.rb', line 263

def self.method_missing(property, *args, &block)
  if args.empty?
    # Special-case rdf:_n for all integers
    RDF_N_REGEXP.match?(property) ? RDF::URI("#{to_uri}#{property}") : RDF::RDFV.send(property)
  else
    super
  end
end