Sha256: ea5e6c96b854133880803276f2836a582f9a8f3aeb0c6da11c66d552202e74dd

Contents?: true

Size: 613 Bytes

Versions: 4

Compression:

Stored size: 613 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module HasInspect
        module Concern
          include Support::Concern

          instance_methods do
            ##
            # @return [String]
            # @since 0.2.0
            #
            def inspect
              "<#{inspect_values[:name]}>"
            end

            ##
            # @return [Hash{Symbol => Object}]
            #
            def inspect_values
              {name: Utils::Class.display_name(self.class)}
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
convenient_service-0.16.0 lib/convenient_service/service/plugins/has_inspect/concern.rb
convenient_service-0.15.0 lib/convenient_service/service/plugins/has_inspect/concern.rb
convenient_service-0.14.0 lib/convenient_service/service/plugins/has_inspect/concern.rb
convenient_service-0.13.0 lib/convenient_service/service/plugins/has_inspect/concern.rb