Sha256: bf39b763cfbb37ba69df7a51d875699a3cf0e0230c8714cc659ac98e21459406
Contents?: true
Size: 407 Bytes
Versions: 5
Compression:
Stored size: 407 Bytes
Contents
module Predicator module Predicates class And attr_reader :predicates def initialize predicates @predicates = predicates end def satisfied? context=Predicator::Context.new predicates.all?{ |pred| pred.satisfied? context } end def == other other.kind_of?(self.class) && other.predicates == predicates end end end end
Version data entries
5 entries across 5 versions & 1 rubygems