Class: RDF::Raptor::FFI::V2::Namespace
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- RDF::Raptor::FFI::V2::Namespace
- Includes:
- RDF::Raptor::FFI
- Defined in:
- lib/rdf/raptor/ffi/v2/namespace.rb
Overview
Constant Summary
Constants included from RDF::Raptor::FFI
Instance Method Summary collapse
-
#free
(also: #release)
Releases
libraptor
memory associated with this structure. - #prefix ⇒ Object
- #prefix_length ⇒ Object
- #uri ⇒ Object
Methods included from RDF::Raptor::FFI
Instance Method Details
#free Also known as: release
This method returns an undefined value.
Releases libraptor
memory associated with this structure.
33 34 35 |
# File 'lib/rdf/raptor/ffi/v2/namespace.rb', line 33 def free V2.raptor_free_namespace(self) unless ptr.null? end |
#prefix ⇒ Object
17 18 19 |
# File 'lib/rdf/raptor/ffi/v2/namespace.rb', line 17 def prefix self[:prefix].to_s end |
#prefix_length ⇒ Object
21 22 23 |
# File 'lib/rdf/raptor/ffi/v2/namespace.rb', line 21 def prefix_length self[:prefix_length] end |