Sha256: db560c1e3de3d957047cf8bb3e69a2ce5463a1540ef14b1cc83a20498e1934a5

Contents?: true

Size: 586 Bytes

Versions: 4

Compression:

Stored size: 586 Bytes

Contents

# frozen_string_literal: true

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

          instance_methods do
            ##
            # @return [String]
            #
            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.19.1 lib/convenient_service/service/plugins/has_inspect/concern.rb
convenient_service-0.19.0 lib/convenient_service/service/plugins/has_inspect/concern.rb
convenient_service-0.18.0 lib/convenient_service/service/plugins/has_inspect/concern.rb
convenient_service-0.17.0 lib/convenient_service/service/plugins/has_inspect/concern.rb