Skip to content

02. File Structure

gabriel edited this page Jan 27, 2024 · 3 revisions

Task Tempus follows a modular file structure to enhance readability and flexibility. This page provides an in-depth breakdown of the program's file organization, explaining the role of each file.

The program's file structure is designed for modularity:

  • main.rb: Entry point, initializing the TaskTempus class to run the countdown.

  • lib/:

    • styling_module.rb: ANSI escape codes for text styling.
    • constants_module.rb: Platform-specific constants and time-related values.
    • input_helpers_module.rb: Helper methods for user input.
    • countdown_helpers_module.rb: Countdown display functionalities.
    • task_tempus.rb: Main logic utilizing the UserInteraction module.
    • user_interaction_module.rb: User interaction methods and program interruption handling.
Clone this wiki locally