lib/trailblazer/activity/structures.rb in trailblazer-activity-0.15.1 vs lib/trailblazer/activity/structures.rb in trailblazer-activity-0.16.0

- old
+ new

@@ -10,33 +10,35 @@ class End def initialize(semantic:, **options) @options = options.merge(semantic: semantic) end - def call(args, **circuit_options) - return self, args, **circuit_options + def call(args, **) + return self, args end def to_h @options end def to_s - %{#<#{self.class.name} #{@options.collect { |k, v| "#{k}=#{v.inspect}" }.join(" ")}>} + %(#<#{self.class.name} #{@options.collect { |k, v| "#{k}=#{v.inspect}" }.join(" ")}>) end alias inspect to_s end class Start < End - def call(args, **circuit_options) - return Activity::Right, args, **circuit_options + def call(args, **) + return Activity::Right, args end end - class Signal; end + class Signal; end + class Right < Signal; end - class Left < Signal; end + + class Left < Signal; end # signal: actual signal emitted by the task # color: the mapping, where this signal will travel to. This can be e.g. Left=>:success. The polarization when building the graph. # "i am traveling towards :success because ::step said so!" # semantic: the original "semantic" or role of the signal, such as :success. This usually comes from the activity hosting this output.