Sha256: 24e1a284f56ffb94d89fade17f92d1def3e6cbd93a9ba288104f82a215953851

Contents?: true

Size: 626 Bytes

Versions: 1

Compression:

Stored size: 626 Bytes

Contents

module Dox
  module Printers
    class BasePrinter

      def initialize(output)
        @output = output
      end

      def print
        raise NotImplementedError
      end

      private

      def descriptions_folder_path
        Dox.config.desc_folder_path
      end

      def print_desc(desc, fullpath = false)
        return if desc.blank?

        if desc.to_s =~ /.*\.md$/
          if fullpath
            path = desc
          else
            path = descriptions_folder_path.join(desc).to_s
          end
          "<!-- include(#{path}) -->"
        else
          desc
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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