Class: RDF::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/rdf/lmdb.rb

Instance Method Summary collapse

Constructor Details

#initialize(id = nil) ⇒ Node

Monkeypatch the bnode identifier generator because memory addresses have a tendency to be the same across runs on certain systems



28
29
30
31
# File 'lib/rdf/lmdb.rb', line 28

def initialize(id = nil)
  id  = nil if id.to_s.empty?
  @id = (id || make_cheapo_b64_uuid_ncname).to_s.freeze
end