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


This Question Belongs to Ruby Programming >> Basic Syntax In Ruby

Join The Discussion

Related Questions on Basic Syntax in Ruby