class RDF::Raptor::FFI::V2::Namespace

@see librdf.org/raptor/api/raptor2-section-xml-namespace.html

Public Instance Methods

free() click to toggle source

Releases ‘libraptor` memory associated with this structure.

@return [void]

# File lib/rdf/raptor/ffi/v2/namespace.rb, line 33
def free
  V2.raptor_free_namespace(self) unless ptr.null?
end
Also aliased as: release
prefix() click to toggle source
# File lib/rdf/raptor/ffi/v2/namespace.rb, line 17
def prefix
  self[:prefix].to_s
end
prefix_length() click to toggle source
# File lib/rdf/raptor/ffi/v2/namespace.rb, line 21
def prefix_length
  self[:prefix_length]
end
release()
Alias for: free
uri() click to toggle source
# File lib/rdf/raptor/ffi/v2/namespace.rb, line 25
def uri
  RDF::URI.new(V2.raptor_uri_as_string(self[:uri]))
end