Formatting Flashcards
1
Q
When defining or initializing a method, variable, or file, what case should it be in
A
snake_case
def this_is_a_great_method # do stuff end
2
Q
In Ruby, constants are denoted with what format?
A
all uppercase letters
FOUR = ‘four’
3
Q
When naming classes, what case format should be used?
A
CamelCase
# Class naming class MyFirstClass en