Sha256: db4301e6fcf58589810c8d0a04b454c7bcc4849a63eb83f2d701533d7b5e85c0

Contents?: true

Size: 588 Bytes

Versions: 2

Compression:

Stored size: 588 Bytes

Contents

module DataMapper
  class Query
    module Conditions
      class AbstractOperation
        def each_node
          operands = self.operands.dup

          while operand = operands.shift
            if operand.respond_to?(:operands)
              operands.concat(operand.operands)
            else
              yield operand
            end
          end
        end
      end

      class AbstractComparison
        # this is necessary to allow dm-adjust to change the conditions
        # of the query in an existing collection
        attr_accessor :value
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dm-adjust-0.10.1 lib/dm-adjust/query/conditions/comparison.rb
dm-adjust-0.10.0 lib/dm-adjust/query/conditions/comparison.rb