Join Kevin Skoglund for an in-depth discussion in this video Guide class, part of Ruby Essential Training.
In this movie we are going to see how to create the guide class for our…Food Finder project.…And the guide class really is going to be the heart of the food finder, because…in that init.rb file, we are going to instantiate the guide class.…We are going to create a new guide, right, a new instance of the guidebook.…And then we will tell that guidebook, hey, guidebook take over, and at that point…the guide class will take over, and it will handle all of the user input,…and do all the processing of the actions that have been asked for, and handle…the user output as well.…So really the guide class is going to be the controller class. It is going to…control what's going on.…
To start out with, we will just outline the features that we think it's going to have, …and then over time we can come back and fill those in.…So I have already got a placeholder for my guide.rb inside the lib folder and…I have gone ahead and just given it the class declaration of guides, just to get us started.…So the first thing we are going to want to do is initialize this object.…
- 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.