-
Notifications
You must be signed in to change notification settings - Fork 17
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
Panda.Tiger.Eagle(complete) #11
base: master
Are you sure you want to change the base?
Conversation
@answer_select = [] | ||
@answers = ["She can code in Ruby", "She has a dog named Lulu", "She never quite learned how to ride a bike", | ||
"She's seen all Die Hard Movies", "She only uses chopsticks to eat her food"] | ||
@answers.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.
Here it looks like you are making a copy of answers, in order to sample it later.
You likely don't need to --- since "sample" is a safe method, it won't change the array you're calling it on.
@answers = ["She can code in Ruby", "She has a dog named Lulu", "She never quite learned how to ride a bike",
"She's seen all Die Hard Movies", "She only uses chopsticks to eat her food"]
@reply = @answers.sample
Quite excellent! Is this online anywhere? I'd like to check it out. |
Hey Jesse, Happy New Year. Best,
|
@var114 -- I'll take a look now |
No description provided.