# frozen_string_literal: true ## # WIP: Factory API is NOT well-thought yet. It will be revisited and completely refactored at any time. # module ConvenientService module Factories module Step module Instance ## # @return [ConvenientService::Service::Plugins::HasResultSteps::Entities::Step] # def create_step_instance service_class = ::Class.new do include ::ConvenientService::Configs::Standard step :result def result success end end service_instance = service_class.new service_instance.steps.first end end end end end