This repository includes files with Ruby that can be used to recreate an OOP school library app.
- 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
To run this project you need:
- Ruby installed and running. To get more information, read the installation instructions.
- You should be able to use IRB.
Clone this repository to your desired folder:
git clone git@github.com:rabayarabu/OOP-school-library.git
cd OOP-school-library
Install project dependencies with:
bundle install
To run the project, instantiate the class files in main. rb
and execute the following command:
ruby main.rb
- GitHub: @ProgramKingAbel
- Twitter: @CEOAbel1
- LinkedIn LinkedIn
- GitHub: @sahlminkok
- Twitter: @sahlminkok
- LinkedIn sahlminkok
- Optimize the performance of the system.🚀
Contributions, issues, and feature requests are welcome!
Give me ⭐️ If you like this project!
- I thank the Microverse program for giving us this great chance.
This project is MIT licensed.