diff --git a/lib/trailblazer/activity/dsl/linear/zeitwerk.rb b/lib/trailblazer/activity/dsl/linear/zeitwerk.rb new file mode 100644 index 0000000..9bd17a4 --- /dev/null +++ b/lib/trailblazer/activity/dsl/linear/zeitwerk.rb @@ -0,0 +1,17 @@ +module Trailblazer::Activity::DSL::Linear + module Zeitwerk + module Strategy + private def recompile_activity_for(type, *args, &block) + sequence = apply_step_on_sequence_builder(type, *args, &block) + + @state.update!(:sequence) { |*| sequence } + end + + def finalize! + sequence = @state.get(:sequence) + + recompile!(sequence) + end + end + end +end