# File lib/apipie/extractor/writer.rb, line 77 def load_new_examples @collector.records.reduce({}) do |h, (method, calls)| show_in_doc = nil recorded_examples = calls.map do |call| if show_in_doc.nil? show_in_doc = 1 if showable_in_doc?(call.with_indifferent_access) else show_in_doc = 0 end example = call.merge(:show_in_doc => show_in_doc.to_i, :recorded => true) example end h.update(method => recorded_examples) end end