1234567891011121314151617 |
- module Chervil::AST
- class Conditional
- attr_reader :predicate
- attr_reader :true_branch
- attr_reader :false_branch
-
- def initialize(predicate, true_branch, false_branch)
- @predicate = predicate
- @true_branch = true_branch
- @false_branch = false_branch
- end
-
- def ==(other)
- @predicate == other.predicate && @true_branch == other.true_branch && @false_branch == other.false_branch
- end
- end
- end
|