lib/rdf/json/writer.rb in rdf-json-0.2.0 vs lib/rdf/json/writer.rb in rdf-json-0.3.0.pre
- old
+ new
@@ -1,9 +1,12 @@
module RDF::JSON
##
# RDF/JSON serializer.
#
+ # @example Loading RDF/JSON serialization support
+ # require 'rdf/json'
+ #
# @example Obtaining an RDF/JSON writer class
# RDF::Writer.for(:json) #=> RDF::JSON::Writer
# RDF::Writer.for("etc/test.json")
# RDF::Writer.for(:file_name => "etc/test.json")
# RDF::Writer.for(:file_extension => "json")
@@ -84,7 +87,7 @@
case value
when RDF::Literal then value.to_json
else RDF::Literal.new(value).to_json
end
end
- end # class Writer
-end # module RDF::JSON
+ end # Writer
+end # RDF::JSON