Conversation
There was a problem hiding this comment.
here you're returning nil if the struct has no title. One other way you can do this in ruby:
unless struct.title
Movie.new # continue rest
end|
Looks great!! Nice use of break in the loop and nailing the panda requirement. |
|
I always forget about unless. I don't suppose you have a recommendation for a book that's like a quick On Tue, Mar 12, 2013 at 10:28 AM, Jesse Wolgamott
|
|
@habutai I took a look around and couldnt' find a syntax for ruby. Mostly because you figure out how ruby works by using it (it's "defined by its implementation"). Maybe I should create one! |
Made it state movie not found and ask if the user would like to search again.
This one was pretty fun. I might go back to do the other levels when I have more time :]
-J