Vidyalelo
Ruby Programming · Q5

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 5

Q5

Which method is used to add a number of months to a Date object in Ruby?

A.
next_month
Answer
B.
add_month
C.
months_from_now
D.
advance_months

Answer: Option A

Solution

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