Sha256: fba994e16a8daed07bf57b248b32ccd905e8cbea06dd75fe90b9f159f63a9ba4
Contents?: true
Size: 1.84 KB
Versions: 6
Compression:
Stored size: 1.84 KB
Contents
# frozen_string_literal: true module ConvenientService module RSpec module Matchers module Classes module Results class Base module Entities module Printers class Base module Commands class GenerateExpectedStepPart < Support::Command include Support::Delegate ## # @api private # # @!attribute printer [r] # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base] # attr_reader :printer ## # @api private # # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain] # delegate :chain, to: :printer ## # @api private # # @param printer [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base] # @return [void] # def initialize(printer:) @printer = printer end ## # @api private # # @return [String] # def call return "" unless chain.used_step? chain.step.nil? ? "without step" : "of step `#{chain.step}`" end end end end end end end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems