refactor(logic): compute sub champ values

This commit is contained in:
Paul Chavard 2024-02-13 11:24:58 +01:00
parent 641a33e1e0
commit 93635b3516
7 changed files with 39 additions and 49 deletions

View file

@ -37,6 +37,8 @@ class Logic::BinaryOperator < Logic::Term
l = @left.compute(champs)
r = @right.compute(champs)
l = l[:value] if l.is_a?(Hash)
l&.send(operation, r) || false
end