demarches-normaliennes/app/models/logic/empty_operator.rb

12 lines
188 B
Ruby
Raw Normal View History

2022-06-09 12:14:08 +02:00
class Logic::EmptyOperator < Logic::BinaryOperator
def to_s = "empty operator"
def type = :empty
2022-06-27 20:43:24 +02:00
def errors(_stable_ids = nil) = []
2022-07-04 11:09:23 +02:00
def compute(_champs = [])
true
end
2022-06-09 12:14:08 +02:00
end