Method: RDF::Enumerable#dump
- Defined in:
- lib/rdf/mixin/enumerable.rb
#dump(*args, **options) ⇒ String
Returns a serialized string representation of self.
Before calling this method you may need to explicitly require a serialization extension for the specified format.
802 803 804 805 806 |
# File 'lib/rdf/mixin/enumerable.rb', line 802 def dump(*args, **) writer = RDF::Writer.for(*args) raise RDF::WriterError, "No writer found using #{args.inspect}" unless writer writer.dump(self, nil, **) end |