Beginner
Ruby
Q3 / 100
Which keyword is used to define a method in Ruby?
Correct! Well done.
Incorrect.
The correct answer is B) def
B
Correct Answer
def
Explanation
Methods in Ruby are defined using "def methodname ... end".
Progress
3/100