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

alexadominguez--practice2 #38

Open
wants to merge 5 commits into
base: practice-day4
Choose a base branch
from

Conversation

aledomsa
Copy link

@aledomsa aledomsa commented Jan 17, 2022

  • 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.

@aledomsa
Copy link
Author

@Apostat23

@@ -0,0 +1,3 @@
Hi I´m Alexa but not from Amazon.
Copy link
Collaborator

Choose a reason for hiding this comment

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

😅

Copy link
Author

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
Copy link
Collaborator

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 ''

Copy link
Author

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.

Copy link
Collaborator

@lscantillowl lscantillowl left a comment

Choose a reason for hiding this comment

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

LGTM✅

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.

2 participants