class Riml::TernaryOperatorNode

operator = :ternary operands = [condition, if_expr, else_expr]

Public Class Methods

new(operands, operator=:ternary) click to toggle source
Calls superclass method
# File lib/riml/nodes.rb, line 472
def initialize(operands, operator=:ternary)
  super(operator, operands)
end

Public Instance Methods

condition() click to toggle source
# File lib/riml/nodes.rb, line 476
def condition() operands[0] end
else_expr() click to toggle source
# File lib/riml/nodes.rb, line 480
def else_expr() operands[2] end
if_expr() click to toggle source
# File lib/riml/nodes.rb, line 478
def if_expr() operands[1] end