Sha256: b6981b184d31f7c4792783cbdd95821d98343509fda28801f0fd38c4fd014bdc

Contents?: true

Size: 187 Bytes

Versions: 20

Compression:

Stored size: 187 Bytes

Contents

class Predicate
  module Or
    include NadicBool

    def operator_symbol
      :'||'
    end

    def evaluate(tuple)
      sexpr_body.any?{|op| op.evaluate(tuple) }
    end

  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
predicate-2.8.0 lib/predicate/nodes/or.rb
predicate-2.7.1 lib/predicate/nodes/or.rb
predicate-2.7.0 lib/predicate/nodes/or.rb
predicate-2.6.0 lib/predicate/nodes/or.rb
predicate-2.5.0 lib/predicate/nodes/or.rb
predicate-2.4.0 lib/predicate/nodes/or.rb
predicate-2.3.3 lib/predicate/nodes/or.rb
predicate-2.3.2 lib/predicate/nodes/or.rb
predicate-2.3.1 lib/predicate/nodes/or.rb
predicate-2.3.0 lib/predicate/nodes/or.rb
predicate-2.2.1 lib/predicate/nodes/or.rb
predicate-2.2.0 lib/predicate/nodes/or.rb
predicate-2.1.0 lib/predicate/nodes/or.rb
predicate-2.0.1 lib/predicate/nodes/or.rb
predicate-2.0.0 lib/predicate/nodes/or.rb
predicate-1.3.4 lib/predicate/nodes/or.rb
predicate-1.3.3 lib/predicate/nodes/or.rb
predicate-1.3.2 lib/predicate/nodes/or.rb
predicate-1.3.1 lib/predicate/nodes/or.rb
predicate-1.3.0 lib/predicate/nodes/or.rb