aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/math.rb
Commit message (Collapse)AuthorAgeFilesLines
* * Support for bitwise operations as infix operators. Tests included.Shahbaz Javeed2016-01-061-0/+24
| | | | | | | | | | | | | | | | | | | | | | *** Individual commit messages included below *** * Preliminary support for bitwise operations as infix operators. Tests to follow. * Added bitwise xor, shift left and shift right operators * Fixed the BitwiseOr class so it uses the :| operator instead of :& * All the methods for the bitwise operators in the Arel::Math module now wrap them up in Arel::Nodes::Grouping so the operation becomes isolated like addition and subtraction * Preliminary set of tests for the new operators * Updated README with examples of bitwise operations * Added a new UnaryOperation class which is a riff on the InfixOperation class * Added tests for UnaryOperation (inspired by InfixOperation tests) * Added the bitwise not (~) operator as a UnaryOperation * Added tests for the bitwise not operator * Added documentation for the bitwise not operator * Updated gemspec using `rake arel.gemspec`
* Replace MathOperation with InfixOperation to support more operatorsErnie Miller2011-03-091-2/+2
|
* cleaning up math operations on attributesAaron Patterson2011-03-071-3/+1
|
* implemented support for math operations in numeric attributesVladimir Meremyanin2011-01-291-0/+21