Join Kevin Skoglund for an in-depth discussion in this video Booleans, part of Ruby Essential Training.
In this movie, we are going to talk about the Ruby type for Booleans.…Now if you have done programing before, this is all going to be very familiar.…If not, you will just want to take a second to understand that a Boolean is in…simple terms just going to be True or False.…Something that's one or the other.…It can't be anything else.…It's either going to be true or it's false, and we are going to use this…for doing comparisons.…So in a program we might say for example, if X=1, then output X, or if X is not…equal to 1, then output something different.…
That's the kind of thing we are going to be wanting to work towards in our…control flow, which we will get to in a little while.…For now, we just want to focus on the conditional part of that, which is a Boolean.…In order to do that, we are going to need to know some comparison and…logic operators in Ruby.…The first of these is the equal to operator.…That's probably the most common one you will use, and what we would use is for…example X and then = = 1.…
- 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
Q: You mention e-texteditor.com as a place to get a Windows "sister" version of TextMate. However, e-texteditor.com looks like a Chinese auto website. Are there any other alternatives?
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.