Skip to content

Commit

Permalink
add Zeitwerk::Strategy as POC.
Browse files Browse the repository at this point in the history
  • Loading branch information
apotonick committed Sep 19, 2024
1 parent 43fd883 commit 65dbd4c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/trailblazer/activity/dsl/linear/zeitwerk.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 65dbd4c

Please sign in to comment.