Class: WAB::Impl::Expr
- Inherits:
-
Object
- Object
- WAB::Impl::Expr
- Defined in:
- lib/wab/impl/expr.rb
Overview
The base class for expression that are used in the TQL where and filter clauses.
Instance Method Summary collapse
-
#eval(_data) ⇒ Object
Evaluate the expression using the supplied WAB::Data object.
-
#initialize ⇒ Expr
constructor
A new instance of Expr.
-
#native ⇒ Object
Return a native Ruby representation of the expression.
Constructor Details
#initialize ⇒ Expr
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 |
#native ⇒ Object
Return a native Ruby representation of the expression.
20 21 22 |
# File 'lib/wab/impl/expr.rb', line 20 def native() [] end |