From 96f54f13b6df06eb4aaf404d293009ea0be15fb9 Mon Sep 17 00:00:00 2001 From: David Bailey Date: Fri, 14 Apr 2023 10:27:22 +0200 Subject: [PATCH] feat: :sparkles: add execute_all function --- lib/comfpile/core.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/comfpile/core.rb b/lib/comfpile/core.rb index bfb2d39..658c3a1 100644 --- a/lib/comfpile/core.rb +++ b/lib/comfpile/core.rb @@ -142,5 +142,17 @@ module Comfpile nil end + + def execute_all + step_count = 0 + + until @processing_stack.empty? + execute_step() + step_count += 1 + end + + puts "Done after #{step_count} exec loops..." + end + end end \ No newline at end of file