Join Kevin Skoglund for an in-depth discussion in this video Arguments, part of Ruby Essential Training.
In this movie I want to talk about arguments.…When I say arguments, I don't mean the disagreement between two people.…In programming, arguments are going to be a comma-separated list of values that…we pass into our methods.…It's a way that we can get around the problem that we saw in the last movie of…variable scope, because now it doesn't matter what the scope is, when we call…the method, we pass in the values that it's going need.…We don't have to make sure that they have all already been set.…We pass them in at the time that we call them, and that's going to be arguments.…You will also sometimes see arguments abbreviated as just args, so if you see…that, that's what it means.…
It's just short for arguments.…In my ruby_sandbox, you will see that I have a file already called arguments.…It's basically the same code that we have been working with, but I have added…a comment to the top, noting that methods with arguments typically use parentheses.…Methods without arguments typically do not.…But it's completely optional as to whether we use them in both cases.…
- 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.