Sha256: 66a1f9f34e022448808e6cb83dc985f63e04c33ac7042f947bb04c9602f0d851

Contents?: true

Size: 537 Bytes

Versions: 6

Compression:

Stored size: 537 Bytes

Contents

module Dox
  module Printers
    class DocumentPrinter < BasePrinter
      def print(passed_examples)
        print_meta_info

        passed_examples.sort.each do |_, resource_group|
          group_printer.print(resource_group)
        end
      end

      private

      def group_printer
        @group_printer ||= ResourceGroupPrinter.new(@output)
      end

      def print_meta_info
        @output.puts(print_desc(api_desc_path))
      end

      def api_desc_path
        Dox.config.header_file_path
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dox-1.3.0 lib/dox/printers/document_printer.rb
dox-1.2.0 lib/dox/printers/document_printer.rb
dox-1.1.0 lib/dox/printers/document_printer.rb
dox-1.0.2 lib/dox/printers/document_printer.rb
dox-1.0.1 lib/dox/printers/document_printer.rb
dox-1.0.0 lib/dox/printers/document_printer.rb