Skip to content

cspriggs220/NSS-Cal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NSS Cal Project


This is a project for the Nashville Software School, in which I'm building a Ruby command line program that can print out the calendar (a la the cal command) of a given month and/or year.

This project is incomplete


Phase 1 - complete

  • Write integration tests for the several edgecases that deal with leap year integration.
  • Utilize sample cal implementation to make tests pass.

Phase 2 - complete

  • Write methods that will begin to print out the necessary items in a calendar.
  • Write tests for these methods.
  • Make them pass.

Phase 3 - incomplete

  • Build Year class for full year integration with cal.
  • Write methods to use existing Month class to build the Year class.
  • Write the tests and make them pass.
  • Refactor
    List of methods used for Month Class
  1. initialize method
  2. month_header method
  3. days_header method
  4. zeller method
  5. leap_year? method
  6. numbers_in_month method
  7. nil_units method replaces blank space before first date of month
  8. month_array_with_nil_units
  9. all_weeks_in_month_array
  10. format_month
  11. format_weeks
  12. get_week(n)
  13. format_calendar
    List of methods used for Year Class
  1. initialize method
  2. year_header method
  3. months_header method
  4. format_month_header method
  5. days_header method
  6. create_months
  7. format_year

About

Command Line Calendar project for the Nashville Software School

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages