Sha256: 3076fd43730b543b3d4b4fe9d24df4265020ce8aeb9cb24c8052cdc17a1c8141
Contents?: true
Size: 1.42 KB
Versions: 6
Compression:
Stored size: 1.42 KB
Contents
# frozen_string_literal: true module ConvenientService module Service module Plugins module CanHaveSteps module Entities class Step module Plugins module HasAwesomePrintInspect module Concern include Support::Concern instance_methods do ## # @return [String] # # @internal # NOTE: `ai` is a part of public interface of `awesome_print`. # - https://github.com/awesome-print/awesome_print#usage # - https://github.com/awesome-print/awesome_print/blob/master/lib/awesome_print/core_ext/kernel.rb # # TODO: `inspect_values` for class. This way `service_class.name || ...` can be shared. # def inspect metadata = { ConvenientService: { entity: "Step", container: container.klass.name, **(method_step? ? {method: ":#{method}"} : {service: service.klass.name}) } } metadata.ai end end end end end end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems