Join Kevin Skoglund for an in-depth discussion in this video Handling input in the action loop, part of Ruby Essential Training.
So we are off to a good start with our guide at this point and our…initialization routine is basically done.…But what we don't have is any kind of interactivity in our Food Finder and…that's what we are going to work on next.…So I will just open up the guide.rb file and the initialize method is what we…have been working on so far.…We can now call that done. We have really written it.…It is interacting with the Restaurant class and the Restaurant class is handling…everything appropriately.…I am going to use a feature of TextMate to just fold up that initialize method…and I can do the same thing for the introduction and conclusion, because we are…basically done with those two.…But this launch method here has this action loop and we need to tackle that now.…
So what do we want to do?…That's what we want to ask the user.…We want to ask the user to give us some feedback.…Well, we know how to do that.…We have learned how to take user input before.…I am going to give the user a prompt first of all and we will put a space…
- Using Ruby in the Interactive Ruby Shell and in standalone scripts
- Learning to write custom code blocks to find, merge, and sort
- Using modules for namespacing or as mix-ins
- Reading from and writing to files
- Creating a full Ruby project from start to finish
Skill Level Beginner
1. Getting Started with Ruby
2. Ruby Object Types
3. Control Structures
4. Code Blocks
8. Working with Files
9. Ruby Project: Creating the Food Finder
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.