Module: DataMapper::Query::Conditions::FlattenOperation

Included in:
AndOperation, OrOperation
Defined in:
lib/dm-core/query/conditions/operation.rb

Overview

class AbstractOperation

Instance Method Summary collapse

Instance Method Details

#<<(operand) ⇒ Object

TODO: document



137
138
139
140
141
142
143
144
# File 'lib/dm-core/query/conditions/operation.rb', line 137

def <<(operand)
  if operand.kind_of?(self.class)
    @operands.concat(operand.operands)
    self
  else
    super
  end
end