The world object is the single global variable in Redland that all the classes, their factories and implementations reference.
In most programs there should be only one Redland world, using multiple models although multiple worlds are possible.
# File lib/rdf/redland.rb, line 54 def World.create_finalizer(world) proc {|id| "Finalizer on #{id}" #log_final.info "closing world" # This is commented out because Ruby fails to guarantee this # is called after all other redland destructors #Redland::librdf_free_world world } end
Create new RDF World object (constructor)
# File lib/rdf/redland.rb, line 48 def initialize() @world = Redland::librdf_new_world() Redland::librdf_world_open(@world) ObjectSpace.define_finalizer(self,World.create_finalizer(@world)) end
Generated with the Darkfish Rdoc Generator 2.