Sha256: 4ffbeb5adc0cc233aa1ccf9f1ab022b8017cc2a20ade3442f195ed91502714c2

Contents?: true

Size: 466 Bytes

Versions: 11

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true

module Spandx
  module Cli
    class Printer
      def match?(_format)
        raise ::Spandx::Error, :match?
      end

      def print_header(io); end

      def print_line(dependency, io)
        io.puts(dependency.to_s)
      end

      def print_footer(io); end

      class << self
        include Core::Registerable

        def for(format)
          find { |x| x.match?(format) } || new
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spandx-0.18.3 lib/spandx/cli/printer.rb
spandx-0.18.2 lib/spandx/cli/printer.rb
spandx-0.18.1 lib/spandx/cli/printer.rb
spandx-0.18.0 lib/spandx/cli/printer.rb
spandx-0.17.0 lib/spandx/cli/printer.rb
spandx-0.16.1 lib/spandx/cli/printer.rb
spandx-0.16.0 lib/spandx/cli/printer.rb
spandx-0.15.1 lib/spandx/cli/printer.rb
spandx-0.15.0 lib/spandx/cli/printer.rb
spandx-0.14.0 lib/spandx/cli/printer.rb
spandx-0.13.5 lib/spandx/cli/printer.rb