class WAB::Impl::And
A logical AND expression.
Public Instance Methods
eval(data)
click to toggle source
Create an AND expression with the provided arguments which must be instances of subclasses of the Expr
class.
- args
-
argument to the AND expression
def initialize(*args)
super
end
# File lib/wab/impl/exprs/and.rb, line 17 def eval(data) args.each { |a| return false unless a.eval(data) } true end
native()
click to toggle source
# File lib/wab/impl/exprs/and.rb, line 24 def native() args.map(&:native).unshift('AND') end