Vidyalelo
Ruby Programming · Q24

Basic Syntax in Ruby

Programming · Ruby Programming · question 24

Q24

How do you call a method in Ruby?

A.
method_name()
B.
object.method_name
Answer
C.
object.method_name()
D.
method_name(object)

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board