demarches-normaliennes/app/models/logic/empty_operator.rb
2024-08-22 09:26:48 +02:00

13 lines
280 B
Ruby

# frozen_string_literal: true
class Logic::EmptyOperator < Logic::BinaryOperator
def to_s(_type_de_champs = []) = I18n.t('logic.empty_operator')
def type(_type_de_champs = []) = :empty
def errors(_type_de_champs = []) = []
def compute(_champs = [])
true
end
end