Class: WAB::Impl::BoolExpr

Inherits:
Expr
  • Object
show all
Defined in:
lib/wab/impl/bool_expr.rb

Direct Known Subclasses

And, Or

Instance Method Summary collapse

Methods inherited from Expr

#native

Constructor Details

#initialize(*args) ⇒ BoolExpr

Create an expression with the provided arguments which must be instances of subclasses of the Expr class.

args

argument to the expression



11
12
13
# File 'lib/wab/impl/bool_expr.rb', line 11

def initialize(*args)
  @args = args
end

Instance Method Details

#append_arg(arg) ⇒ Object



15
16
17
# File 'lib/wab/impl/bool_expr.rb', line 15

def append_arg(arg)
  @args << arg
end

#eval(_data) ⇒ Object



19
20
21
# File 'lib/wab/impl/bool_expr.rb', line 19

def eval(_data)
  false
end