123456789_123456789_123456789_123456789_123456789_

Module: Arel::Math

Do not use. This module is for internal use only.

Instance Method Summary

Instance Method Details

#&(other)

[ GitHub ]

  
# File 'activerecord/lib/arel/math.rb', line 21

def &(other)
  Arel::Nodes::Grouping.new(Arel::Nodes::BitwiseAnd.new(self, other))
end

#*(other)

[ GitHub ]

  
# File 'activerecord/lib/arel/math.rb', line 5

def *(other)
  Arel::Nodes::Multiplication.new(self, other)
end

#+(other)

[ GitHub ]

  
# File 'activerecord/lib/arel/math.rb', line 9

def +(other)
  Arel::Nodes::Grouping.new(Arel::Nodes::Addition.new(self, other))
end

#-(other)

[ GitHub ]

  
# File 'activerecord/lib/arel/math.rb', line 13

def -(other)
  Arel::Nodes::Grouping.new(Arel::Nodes::Subtraction.new(self, other))
end

#/(other)

[ GitHub ]

  
# File 'activerecord/lib/arel/math.rb', line 17

def /(other)
  Arel::Nodes::Division.new(self, other)
end

#<<(other)

[ GitHub ]

  
# File 'activerecord/lib/arel/math.rb', line 33

def <<(other)
  Arel::Nodes::Grouping.new(Arel::Nodes::BitwiseShiftLeft.new(self, other))
end

#>>(other)

[ GitHub ]

  
# File 'activerecord/lib/arel/math.rb', line 37

def >>(other)
  Arel::Nodes::Grouping.new(Arel::Nodes::BitwiseShiftRight.new(self, other))
end

#^(other)

[ GitHub ]

  
# File 'activerecord/lib/arel/math.rb', line 29

def ^(other)
  Arel::Nodes::Grouping.new(Arel::Nodes::BitwiseXor.new(self, other))
end

#|(other)

[ GitHub ]

  
# File 'activerecord/lib/arel/math.rb', line 25

def |(other)
  Arel::Nodes::Grouping.new(Arel::Nodes::BitwiseOr.new(self, other))
end

#~@

[ GitHub ]

  
# File 'activerecord/lib/arel/math.rb', line 41

def ~@
  Arel::Nodes::BitwiseNot.new(self)
end