Ruby Syntax Flashcards

1
Q

snake_case is for?

A

initialise or define method, variables, and file.

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

CamelCase is for?

A

Class name

e.g. class MyFirstClass

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

ALLCAPITALCASE is for?

A

Constant, or constant variable

e.g. FOUR = 4

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