Examveda

What does the 'return' keyword do in Ruby methods?

A. Exits the method with a value

B. Prints to console

C. Converts to integer

D. Continues the loop

Answer: Option A


Join The Discussion

Related Questions on Data Types and Variables in Ruby