class Bpl::AST::IfExpression

Public Instance Methods

eql?(ie) click to toggle source
# File lib/bpl/ast/expression.rb, line 125
def eql?(ie)
  ie.is_a?(IfExpression) &&
  ie.condition.eql?(@condition) &&
  ie.then.eql?(@then) &&
  ie.else.eql?(@else)
end
show() click to toggle source
# File lib/bpl/ast/expression.rb, line 131
def show
  "(#{yield :if} #{yield @condition} #{yield :then} #{yield @then} #{yield :else} #{yield @else})"
end
type() click to toggle source
# File lib/bpl/ast/expression.rb, line 134
def type; @then.type end