Operators Flashcards

What does the operator tell Ruby to do?

You may prefer our related Brainscape-certified flashcards:
1
Q

+

A

Add

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

-

A

Subtract

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

*

A

Multiply

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

**

A

Power of

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

/

A

Divide

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

%

A

Modulus

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

>

A

Greater than

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

.

A

Dot access

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

::

A

Colon access

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

[ ]

A

List brackets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

!

A

Not

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

<

A

Less than

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

>

A

Greater than

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

> =

A

Greater than equal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

<=

A

Less than equal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
A

Comparison

17
Q

==

A

Equal

18
Q

===

A

Equality

19
Q

!=

A

Not equal

20
Q

&&

A

Logical and (higher precedence)

21
Q

||

A

Logical or (higher precedence)

22
Q

..

A

Range inclusive

23
Q

A

Range non-inclusive

24
Q

@

A

Object scope

25
Q

@@

A

Class scope

26
Q

$

A

Global scope