From 04f2d5380f40a214f1b7d498c7fa698908a77623 Mon Sep 17 00:00:00 2001 From: David Bailey Date: Mon, 17 Apr 2023 16:54:23 +0200 Subject: [PATCH] feat: :sparkles: add single parsed parameter search --- lib/comfpile/engines/parser_engine.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/comfpile/engines/parser_engine.rb b/lib/comfpile/engines/parser_engine.rb index ae4f1a4..2e3b8a1 100644 --- a/lib/comfpile/engines/parser_engine.rb +++ b/lib/comfpile/engines/parser_engine.rb @@ -45,6 +45,10 @@ module Comfpile end end + def find_parsed_parameter(key) + find_parsed_parameters(key).last + end + # Try to find a relative or absolute source file # artefact. # Used to resolve the include, require and reference