Sha256: 6cdef1d997ef11694dff223a0df65b4a3b1d20f3ad33655d5a04643e93cc8075

Contents?: true

Size: 430 Bytes

Versions: 1

Compression:

Stored size: 430 Bytes

Contents

module Dox
  module Printers
    class ResourcePrinter < BasePrinter

      def print(resource)
        @output.puts "\n## #{resource.name} [#{resource.endpoint}]\n\n#{print_desc(resource.desc)}\n"

        resource.actions.each do |_, action|
          action_printer.print(action)
        end
      end

      private

      def action_printer
        @action_printer ||= ActionPrinter.new(@output)
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dox-1.0.0.alpha lib/dox/printers/resource_printer.rb