-
Notifications
You must be signed in to change notification settings - Fork 11
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
My pull request #5
base: master
Are you sure you want to change the base?
Conversation
Hey David -- Yes, so in that case, you might have several Food classes, like so:
Then you could just refer to them as For FoodBarge -- It's something that would hand you food if you tell it what type of animal you want to feed. I'll post a video of filling out the extra credit and maybe it'll make more sense then. For requiring....
|
Yes, but actually def acceptable_food
[Food.new(:bacon).name, Food.new(:tacos).name]
end I had have to add the |
Yes, you don't have to refer to it as name ....
then in your likes you could:
and in Food:
|
Hi!
I have some questions:
First, for the new Food class, is there any way to create
acceptable_food
array without specify thename
method in each element of the array?Second, what is the purpose of the FoodBarge task? I don't understand well this task.
And final, why rspec needs
require "./zoo"
? Why is not enoughrequire zoo
? Could we use hererequire_relative
? How?