lib/rdf/json/format.rb in rdf-json-0.0.0 vs lib/rdf/json/format.rb in rdf-json-0.0.1

- old
+ new

@@ -1,15 +1,22 @@ module RDF::JSON ## # RDF/JSON format specification. # + # @example Obtaining an RDF/JSON format class + # RDF::Format.for(:json) #=> RDF::JSON::Format + # RDF::Format.for("spec/data/test.json") + # RDF::Format.for(:file_name => "spec/data/test.json") + # RDF::Format.for(:file_extension => "json") + # RDF::Format.for(:content_type => "application/json") + # # @see http://n2.talis.com/wiki/RDF_JSON_Specification class Format < RDF::Format content_type 'application/json', :extension => :json content_encoding 'utf-8' reader { RDF::JSON::Reader } writer { RDF::JSON::Writer } require 'json' - end -end + end # class Format +end # module RDF::JSON