Class: BooleanExpr

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/emerald/nodes/boolean_expr.rb

Overview

The boolean condition for a logic statement

Direct Known Subclasses

BinaryExpr, UnaryExpr, VariableName

Instance Method Summary collapse

Instance Method Details

#truthy?(context) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/emerald/nodes/boolean_expr.rb', line 8

def truthy?(context)
  elements.first.truthy?(context)
end