In Files

Parent

Redland::World

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.

Attributes

world[RW]

include Singleton

Public Class Methods

create_finalizer(world) click to toggle source
# File 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
new() click to toggle source

Create new RDF World object (constructor)

# File 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

Go to Redland Home - Language Bindings Home - Ruby API Home

(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol