-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: master
Are you sure you want to change the base?
Conversation
|
||
# Counts to 100. | ||
# Makes an array of length 100 where each value is the fizzbuzz value. | ||
def to_array |
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.
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| |
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.
try moving this out of the class
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.
if I do this, should I just get rid of the array?
@@ -1,29 +0,0 @@ | |||
class Human |
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.
careful not to include other related files
No description provided.