lib/json/ld/writer.rb in json-ld-2.0.0.beta1 vs lib/json/ld/writer.rb in json-ld-2.0.0.beta2
- old
+ new
@@ -128,9 +128,10 @@
# @yieldparam [RDF::Writer] writer
def initialize(output = $stdout, options = {}, &block)
options[:base_uri] ||= options[:base] if options.has_key?(:base)
options[:base] ||= options[:base_uri] if options.has_key?(:base_uri)
super do
+ log_statistics.clear # FIXME: shouldn't be necessary
@repo = RDF::Repository.new
if block_given?
case block.arity
when 0 then instance_eval(&block)