lib/trailblazer/activity/circuit/task_adapter.rb in trailblazer-activity-0.15.1 vs lib/trailblazer/activity/circuit/task_adapter.rb in trailblazer-activity-0.16.0

- old
+ new

@@ -20,12 +20,12 @@ # {Step#call} translates the incoming circuit-interface to the step-interface, # and returns the return value of the user's callable. By design, it is *not* circuit-interface compatible. class Step def initialize(step, user_proc, **) - @step = step - @user_proc = user_proc + @step = step + @user_proc = user_proc end # Translate the circuit interface to the step's step-interface. However, # this only translates the calling interface, not the returning. def call((ctx, flow_options), **circuit_options) @@ -89,10 +89,10 @@ end def inspect # TODO: make me private! user_step = @circuit_step.instance_variable_get(:@user_proc) # DISCUSS: to we want Step#to_h? - %{#<Trailblazer::Activity::TaskBuilder::Task user_proc=#{Trailblazer::Activity::Introspect.render_task(user_step)}>} + %(#<Trailblazer::Activity::TaskBuilder::Task user_proc=#{Trailblazer::Activity::Introspect.render_task(user_step)}>) end alias_method :to_s, :inspect end end # Circuit