Operators Flashcards
What does the operator tell Ruby to do?
1
Q
+
A
Add
2
Q
-
A
Subtract
3
Q
*
A
Multiply
4
Q
**
A
Power of
5
Q
/
A
Divide
6
Q
%
A
Modulus
7
Q
>
A
Greater than
8
Q
.
A
Dot access
9
Q
::
A
Colon access
10
Q
[ ]
A
List brackets
11
Q
!
A
Not
12
Q
<
A
Less than
13
Q
>
A
Greater than
14
Q
> =
A
Greater than equal
15
Q
<=
A
Less than equal