Sha256: f3b8d9b3278ca1aa314cfb8802927adf829a8be082202798c8bf33d61c77af52

Contents?: true

Size: 482 Bytes

Versions: 32

Compression:

Stored size: 482 Bytes

Contents

module Steep
  module Drivers
    class SignatureErrorPrinter
      attr_reader :stdout
      attr_reader :stderr

      def initialize(stdout:, stderr:)
        @stdout = stdout
        @stderr = stderr
      end

      def print_syntax_errors(errors)
        errors.each do |error|
          stderr.puts error.message
        end
      end

      def print_semantic_errors(errors)
        errors.each do |error|
          error.puts stderr
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
steep-0.39.0 lib/steep/drivers/signature_error_printer.rb
steep-0.38.0 lib/steep/drivers/signature_error_printer.rb
steep-0.37.0 lib/steep/drivers/signature_error_printer.rb
steep-0.36.0 lib/steep/drivers/signature_error_printer.rb
steep-0.35.0 lib/steep/drivers/signature_error_printer.rb
steep-0.34.0 lib/steep/drivers/signature_error_printer.rb
steep-0.33.0 lib/steep/drivers/signature_error_printer.rb
steep-0.32.0 lib/steep/drivers/signature_error_printer.rb
steep-0.31.1 lib/steep/drivers/signature_error_printer.rb
steep-0.31.0 lib/steep/drivers/signature_error_printer.rb
steep-0.30.0 lib/steep/drivers/signature_error_printer.rb
steep-0.29.0 lib/steep/drivers/signature_error_printer.rb
steep-0.28.0 lib/steep/drivers/signature_error_printer.rb
steep-0.27.0 lib/steep/drivers/signature_error_printer.rb
steep-0.25.0 lib/steep/drivers/signature_error_printer.rb
steep-0.24.0 lib/steep/drivers/signature_error_printer.rb
steep-0.23.0 lib/steep/drivers/signature_error_printer.rb
steep-0.22.0 lib/steep/drivers/signature_error_printer.rb
steep-0.21.0 lib/steep/drivers/signature_error_printer.rb
steep-0.20.0 lib/steep/drivers/signature_error_printer.rb