lib/trailblazer/activity/structures.rb in trailblazer-activity-0.4.2 vs lib/trailblazer/activity/structures.rb in trailblazer-activity-0.4.3

- old
+ new

@@ -1,8 +1,8 @@ module Trailblazer class Activity < Module # End event is just another callable task. - # Builds an Activity::End instance. + # Builds an {Activity::End} instance. def self.End(semantic) End.new(semantic: semantic) end # Any instance of subclass of End will halt the circuit's execution when hit. @@ -46,9 +46,10 @@ # 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. Output = Struct.new(:signal, :semantic) + # Builds an {Activity::Output} instance. def self.Output(signal, color) Output.new(signal, color).freeze end end end