Examveda

What is the purpose of the beginning_of_week method for a Date object in Ruby?

A. Sets the Date object to the beginning of the current week

B. Sets the Date object to the beginning of the month

C. Sets the Date object to the beginning of the year

D. Sets the Date object to the beginning of the day

Answer: Option A


Join The Discussion

Related Questions on Working with Dates and Times in Ruby