Skip to content

Latest commit

 

History

History
158 lines (108 loc) · 5.16 KB

File metadata and controls

158 lines (108 loc) · 5.16 KB

🛰OOP school library🚀

📗 Table of Contents

📖 OOP school library

This repository includes files with Ruby that can be used to recreate an OOP school library app.

🛠 Built With

Tech Stack

🔑 Key Features

OOP school library

  • Create Person class with:
    • Instance vars: @id, @name, @age
    • Constructor with optional name, parent_permission
    • Getters/setters for @name, @age
    • Private of_age? method
    • Public can_use_services? method
  • Create Student subclass with:
    • Constructor adding @classroom
    • play_hooky method
  • Create Teacher subclass with:
    • Constructor adding @specialization
    • Override can_use_services? to always return true
  • Prepare CapitalizeDecorator and TrimmerDecorator
  • set up associations
  • preserve data
  • Add unit test

(back to top)

💻 Getting Started

Prerequisites

To run this project you need:

Setup

Clone this repository to your desired folder:

  git clone git@github.com:rabayarabu/OOP-school-library.git
  cd OOP-school-library

Install

Install project dependencies with:

  bundle install

Usage

To run the project, instantiate the class files in main. rb and execute the following command:

  ruby main.rb

(back to top)

👥 Authors

👤 Habtamu Alemayehu

👤 Abel Morara

👤 Sahalu Aminu

(back to top)

🔭 Future Features

  • Optimize the performance of the system.🚀

(back to top)

🤝 Contributing

Contributions, issues, and feature requests are welcome!

(back to top)

⭐️ Show your support

Give me ⭐️ If you like this project!

(back to top)

🙏 Acknowledgments

  • I thank the Microverse program for giving us this great chance.

(back to top)

📝 License

This project is MIT licensed.

(back to top)