Class: RDF::Node
- Inherits:
-
Object
- Object
- RDF::Node
- Defined in:
- lib/rdf/lmdb.rb
Instance Method Summary collapse
-
#initialize(id = nil) ⇒ Node
constructor
Monkeypatch the bnode identifier generator because memory addresses have a tendency to be the same across runs on certain systems.
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 |