Class: Gandiva::ExpressionBuilder::Elsif
- Defined in:
- lib/gandiva/expression-builder/elsif.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(parent, condition) ⇒ Elsif
constructor
A new instance of Elsif.
Methods inherited from If
Constructor Details
#initialize(parent, condition) ⇒ Elsif
Returns a new instance of Elsif.
23 24 25 26 |
# File 'lib/gandiva/expression-builder/elsif.rb', line 23 def initialize(parent, condition) @parent = parent super(condition) end |
Instance Method Details
#build ⇒ Object
28 29 30 31 32 33 |
# File 'lib/gandiva/expression-builder/elsif.rb', line 28 def build elsif_node = super build_if_node(@parent.condition_node, @parent.then_node, elsif_node) end |