Sha256: 3a7626b6f9398641fdd80976cb593e80a8fc737073e1e7ac3914cd8b0ed38e96

Contents?: true

Size: 234 Bytes

Versions: 1

Compression:

Stored size: 234 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'treetop'

# The boolean condition for a logic statement
class BooleanExpr < Treetop::Runtime::SyntaxNode
  def truthy?(context)
    elements.first.truthy?(context)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
emerald-lang-1.0.0 lib/emerald/nodes/boolean_expr.rb