lib/eco/api/usecases/use_case_chain.rb in eco-helpers-2.4.9 vs lib/eco/api/usecases/use_case_chain.rb in eco-helpers-2.5.1
- old
+ new
@@ -1,12 +1,11 @@
module Eco
module API
class UseCases
# Class that enables to chain multiple UseCase
class UseCaseChain < UseCase
- @types = UseCase.types
-
+ @types = UseCase.types
MAX_CHAINS = 70
@@num_chains = 0
def initialize(name = nil, type: nil, root:, usecase: nil, &block)
if usecase
@@ -84,11 +83,9 @@
raise "A UseCase can only be chained with another UseCase" if usecase && !usecase.is_a?(UseCase)
usecase.resolved_chains(use_group) if usecase.respond_to?(:resolved_chains)
usecase
end
end
-
end
-
end
end
end