lib/micro/case/safe.rb in u-case-2.0.0.pre vs lib/micro/case/safe.rb in u-case-2.0.0.pre.2
- old
+ new
@@ -1,9 +1,13 @@
# frozen_string_literal: true
module Micro
class Case
class Safe < ::Micro::Case
+ def self.Flow(args)
+ Flow::Reducer.build(Array(args))
+ end
+
def call
super
rescue => exception
raise exception if Error::ByWrongUsage.check(exception)