class Trailblazer::Activity::End
Any instance of subclass of End
will halt the circuit's execution when hit. An End
event is a simple structure typically found as the last task invoked in an activity. The special behavior is that it a) maintains a semantic that is used to further connect that very event b) its `End#call` method returns the end instance itself as the signal.
Public Class Methods
new(semantic:, **options)
click to toggle source
# File lib/trailblazer/activity/structures.rb, line 11 def initialize(semantic:, **options) @options = options.merge(semantic: semantic) end
Public Instance Methods
call(args, **circuit_options)
click to toggle source
# File lib/trailblazer/activity/structures.rb, line 15 def call(args, **circuit_options) return self, args, **circuit_options end
to_h()
click to toggle source
# File lib/trailblazer/activity/structures.rb, line 19 def to_h @options end
to_s()
click to toggle source
# File lib/trailblazer/activity/structures.rb, line 23 def to_s %{#<#{self.class.name} #{@options.collect { |k, v| "#{k}=#{v.inspect}" }.join(" ")}>} end
Also aliased as: inspect