Sha256: 352e527ee305427e7f68d65334fc202129a5ea62d99bcede472eeb2be5862e02
Contents?: true
Size: 384 Bytes
Versions: 2
Compression:
Stored size: 384 Bytes
Contents
module Redlander class Uri def initialize(uri) return nil if uri.nil? uri = uri.is_a?(URI) ? uri.to_s : uri @rdf_uri = Redland.librdf_new_uri(rdf_world, uri) raise RedlandError.new("Failed to create URI from '#{uri}'") if @rdf_uri.null? ObjectSpace.define_finalizer(self, proc { Redland.librdf_free_uri(@rdf_uri) }) rdf_uri end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
redlander-0.3.2 | lib/redlander/uri.rb~ |
redlander-0.3.1 | lib/redlander/uri.rb~ |