Join Kevin Skoglund for an in-depth discussion in this video Arrays, part of Ruby Essential Training.
In this movie we are going to talk about the Ruby object type for arrays.…If you're familiar with arrays from other programming languages, Ruby arrays…work very much the same way.…But if not, let's first talk about what is an array.…An array is an ordered integer- indexed collection of objects.…That's a very fancy way of saying that we can take objects and put them together…in order, and keep their position in the same order, and we can refer to those…objects by their positions.…That's what that integer-indexed part is.…We can say give me the first object, give me the fifth object, and so on,…because they are going to be indexed according to what position they hold.…
One good way to think about arrays is they are like those expanding file folders…you get that you might put your bills in, and you might put your electric bill…in the first pocket, and your phone bill in the second pocket, and your mortgage…payment in your third pocket and so on.…You have a preset order, and you can put things in and out of pockets.…
- 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.