Join Kevin Skoglund for an in-depth discussion in this video Operators are also methods, part of Ruby Essential Training.
You'll be very surprised and quite possibly amused to discover how prevalent…methods are in Ruby, and you didn't even know it.…Common operators in Ruby are methods too.…When I'm talking about operators, I'm talking about things like Plus. Plus is a method.…Now in most other languages, you would just say it's an operator.…It's just very simple, 8+2, just like on a calculator.…Now in Ruby, it's actually a method.…It's the plus method that's being applied to the integer 8 and the…first argument is 2.…So the name of our method is that + there.…
Instead of having it be a word in English that we'd recognize, it's just the +.…Both of these will work if you go in the IRB and try it out.…Now we've already seen how the parenthesis around the argument list is optional.…We saw that back when we were talking about arguments.…But there is another change that's happening where Ruby is allowing us to…just put + instead of having to put dot plus, and that's something that's…happening internally in Ruby to make it easier for us to use, so we don't…
- 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.