January 31 - Create a Range of Months Using the Ruby Date Library
This coding exercise is deceptively easy. The goal is to implement a method that returns an array with the full set of month names. However in order to properly build the solution you'll need to use the Ruby Date library.
Guide Tasks
- Read Tutorial
- Watch Guide Video
- Complete the Exercise
Video locked
This video is viewable to users with a Bottega Bootcamp license
Already a Bottega Student? Sign In
Summary
Implement a method that returns an array of month names.
Exercise Description
This may seem like an easy exercise, however in order to properly pass this exercise you have to utilize the Ruby Date library. You cannot simply type out an array with the month names.
Expected Output
["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
Real World Usage
This exercise will test your ability to work with the Ruby Date library. Additionally, the solution walks through two solutions, one that shows how to build the method from scratch and another that performs the work automatically.