From 6d39ae339f3d0873af816c3ebf57d5af4d96e851 Mon Sep 17 00:00:00 2001 From: David Bailey Date: Fri, 14 Apr 2023 10:25:22 +0200 Subject: [PATCH] feat: add **opts to make inheritance a bit easier --- lib/comfpile/artefact.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/comfpile/artefact.rb b/lib/comfpile/artefact.rb index 4bbbc26..b8ba9c1 100644 --- a/lib/comfpile/artefact.rb +++ b/lib/comfpile/artefact.rb @@ -47,7 +47,9 @@ module Comfpile # Meta-States exist: # - in_progress/completed: Anything but/Only succeeded, skipped, failed - def initialize(core, engine, stage, target) + def initialize(core, engine, stage, target, **opts) + raise ArgumentError, "Unknown options supplied!" unless opts.empty? + @core = core @engine = engine