Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 decorate class #2

Merged
merged 17 commits into from
Jul 25, 2023
Merged

2 decorate class #2

merged 17 commits into from
Jul 25, 2023

Conversation

rivasbolinga
Copy link
Owner

@rivasbolinga rivasbolinga commented Jul 25, 2023

Hi! πŸ‘‹πŸΌ
I have completed my second milestone in the project school-library and I would like to have your Review before merge it. Here is a little summary:

General requirements

Ruby requirements

Project requirements

Interface

  • Create a class Nameable. βœ…
    • Implement a method called correct_name that will raise a NotImplementedError. βœ…

Turn your Person class to Nameable

  • Person class inherits from Nameable βœ…
  • Create a method correct_name implemented. It should simply return the name attribute. βœ…

Prepare base Decorator

  • Inherits from Nameable. βœ…
  • In the constructor assign a nameable object from params to an instance variable. βœ…
  • Implement the correct_name method that returns the result of the correct_name method of the @nameable. βœ…

Prepare CapitalizeDecorator and TrimmerDecorator

  • For the CapitalizeDecorator: βœ…
    • Create a class that inherits from the base Decorator class.
    • Implement a method correct_name that capitalizes the output of @nameable.correct_name.
  • For the TrimmerDecorator: βœ…
    • Create a class that inherits from the base Decorator class.
    • Implement a method correct_name that makes sure that the output of @nameable.correct_name has a maximum of 10 characters. If it's longer it should trim the word.

If you have any question, don't hesitate to contact me by Slack or Zoom. Hope you like it and have a nice day

Copy link

@iambenkis iambenkis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @rivasbolinga ,

Your project is complete! There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! πŸŽ‰

Highlights

Decorate class βœ”οΈ
Trimmer class βœ”οΈ
Capitalize class βœ”οΈ
The project is running successfully βœ”οΈ
Descriptive pull request βœ”οΈ

Optional suggestions

Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.

Cheers and Happy coding!πŸ‘πŸ‘πŸ‘

Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

@rivasbolinga rivasbolinga merged commit 8548d47 into dev Jul 25, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants