There recurring_moment.rb has a broken implementation of RecurringMoment. There is a correct suite of RSpec tests for the class. Fix the module so that the tests pass!
bundle installto install the dependenciesrspec recurring_moment_spec.rbto run the full suite of testsrspec recurring_moment_spec.rb:[line_number]to run a single line
Go ahead and edit the code in recurring_moment.rb to make the module work!
- What's the runtime of the
matchfunction? - How could you improve this method?