Join Kevin Skoglund for an in-depth discussion in this video Namespacing, part of Ruby Essential Training.
In this chapter we will be taking a look at Ruby's modules.…Put it simply, modules are wrappers around our Ruby code.…Now, you may be thinking, wait a minute, isn't that what a class was?…A class was a way for us to roll up different methods and attributes into a wrapper.…Well, modules work in a very similar way, but modules have one important…difference from classes.…They can't be instantiated.…We can never have an instance of a module the way that we have an instance of the class.…Instead, we are going to use our modules in conjunction with our classes.…That will make more sense as we examine the two reasons why we would want to use modules.…
We will look at the first one in this movie, which is namespaces.…If you come from another programming language, you may already have…familiarity with namespacing.…It's a very common concept.…If not, imagine that you have a classroom that has two students in it named Sophia.…The teacher would end up calling one of them Sophia M. and the other one Sophia…
- 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.