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

Classical fizzbuzz lilly #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

lillypiri
Copy link

No description provided.


# Counts to 100.
# Makes an array of length 100 where each value is the fizzbuzz value.
def to_array
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe you can add the array method after you define the fizz/buzz's

# Start with an empty array.
array = []
# Count from 1 to 100.
(1..100).each do |x|
Copy link
Member

Choose a reason for hiding this comment

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

try moving this out of the class

Copy link
Author

Choose a reason for hiding this comment

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

if I do this, should I just get rid of the array?

@@ -1,29 +0,0 @@
class Human
Copy link
Member

Choose a reason for hiding this comment

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

careful not to include other related files

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.

3 participants