Created
July 22, 2013 18:53
-
-
Save zachgersh/6056500 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Solution for Challenge: Ruby Drill: The self Keyword. Started 2013-07-22T18:43:38+00:00 | |
# There are two representations of self that one can use at any time: | |
# 1. When defining a class method, self refers to the current class | |
# 2. When using an instance of a class, self refers to the current instance | |
# Self refers to the object you are currently calling a method on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment