Class: WAB::Impl::Expr

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

Overview

The base class for expression that are used in the TQL where and filter clauses.

Direct Known Subclasses

BoolExpr, Not, PathExpr

Instance Method Summary collapse

Constructor Details

#initializeExpr

Returns a new instance of Expr.



8
9
# File 'lib/wab/impl/expr.rb', line 8

def initialize()
end

Instance Method Details

#eval(_data) ⇒ Object

Evaluate the expression using the supplied WAB::Data object. Each expression subclass evaluates differently.

data

data object to evaluate against.



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

def eval(_data)
  false
end

#nativeObject

Return a native Ruby representation of the expression.



20
21
22
# File 'lib/wab/impl/expr.rb', line 20

def native()
  []
end