List of Ruby Operands

operand what it does
<< append (in context of strings, arrays, IO); shift position of bits in Bignum and Fixnum
>> shift position of bits in Bignum and Fixnum
~ bitwise NOT (high-presendence)
& bitwise AND (medium-presendence)
| bitwise OR (medium-presendence)
^ bitwise XOR (medium-presendence)
** exponent
+ addition
subtraction
* multiplication
/ division
% modulo operator

Leave a Reply





Your email address will not be published. Required fields are marked *

Previous post Tips for Working with Rails
Next post MySQL Dumping Cheat-Sheet