13 lines
280 B
Ruby
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
|