Sha256: a1645b7190e7e51cf987f21af7c5a2af18dbfed2f008ca1314c3b8b86ba18337

Contents?: true

Size: 909 Bytes

Versions: 12

Compression:

Stored size: 909 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module RescuesResultUnhandledExceptions
        module Commands
          class FormatClass < Support::Command
            ##
            # @!attribute [r] klass
            #   @return [Class]
            #
            attr_reader :klass

            ##
            # @param klass [Class]
            # @return [void]
            #
            def initialize(klass:)
              @klass = klass
            end

            ##
            # @return [String]
            #
            # @note Exceptions formatting is inspired by RSpec. It has almost the same output (at least for RSpec 3).
            #
            # @example Line.
            #
            #   StandardError:
            #
            def call
              "#{klass}:"
            end
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_class.rb
convenient_service-0.19.0 lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_class.rb
convenient_service-0.18.0 lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_class.rb
convenient_service-0.17.0 lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_class.rb
convenient_service-0.16.0 lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_class.rb
convenient_service-0.15.0 lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_class.rb
convenient_service-0.14.0 lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_class.rb
convenient_service-0.13.0 lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_class.rb
convenient_service-0.12.0 lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_class.rb
convenient_service-0.11.0 lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_class.rb
convenient_service-0.10.1 lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_class.rb
convenient_service-0.10.0 lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_class.rb