-
Notifications
You must be signed in to change notification settings - Fork 20
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
alexadominguez--practice2 #38
base: practice-day4
Are you sure you want to change the base?
alexadominguez--practice2 #38
Conversation
aledomsa
commented
Jan 17, 2022
•
edited
Loading
edited
- Created archiver file.
- Added archiver class from implementation given.
- Removed requires and initialize. Added testing_text for testing.
- Removed data variable in read_file method and self.
- Added testing code.
@@ -0,0 +1,3 @@ | |||
Hi I´m Alexa but not from Amazon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lscantillowl hahaha now it is my personal jk
|
||
@@modes.each do |mode| | ||
define_method("open_file_as_#{mode}") do |file| | ||
@file = File.open(file, "r") if mode == :reader |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer use ""
for interpolations. If you use just string ''
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, I will change this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM✅