operator
Estimated reading time: 1 minuteoperator
| name | details |
|---|---|
| = | assign |
| + | add |
| - | subtraction |
| * | multiplacation |
| / | division |
| % | modulus |
| // | or |
| && | and |
| not | not |
| == | equal |
| != | not equal |
| > | greater than |
| >= | greater than or equal |
| < | less than |
| <= | less than or equal |
-
// is || -
x.eql?ycompare when both are same
print(5.eql?(5))
# true
print(5.eql?(5.0))
# false