class TransactionQL::Not

Attributes

expressions[R]

Public Class Methods

new(expressions) click to toggle source
# File lib/transaction_ql/expressions.rb, line 54
def initialize(expressions)
  @expressions = expressions
end

Public Instance Methods

matches?(hash) click to toggle source
# File lib/transaction_ql/expressions.rb, line 58
def matches?(hash)
  result = @expressions.map { |exp| exp.matches? hash }.any?
  return !(result)
end