2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-06-09 12:14:08 +02:00
|
|
|
class Logic::EmptyOperator < Logic::BinaryOperator
|
2023-11-06 18:10:08 +01:00
|
|
|
def to_s(_type_de_champs = []) = I18n.t('logic.empty_operator')
|
2022-06-09 12:14:08 +02:00
|
|
|
|
2022-09-26 21:07:43 +02:00
|
|
|
def type(_type_de_champs = []) = :empty
|
2022-06-09 12:14:08 +02:00
|
|
|
|
2022-09-26 21:11:43 +02:00
|
|
|
def errors(_type_de_champs = []) = []
|
2022-07-04 11:09:23 +02:00
|
|
|
|
|
|
|
def compute(_champs = [])
|
|
|
|
true
|
|
|
|
end
|
2022-06-09 12:14:08 +02:00
|
|
|
end
|